> ## Documentation Index
> Fetch the complete documentation index at: https://docs.towns.com/llms.txt
> Use this file to discover all available pages before exploring further.

# getRoom

## Imports

```ts theme={null}
import { getRoom } from '@towns-protocol/react-sdk'
```

## Definition

```ts theme={null}
function getRoom(
  sync: SyncAgent,
  streamId: string,
): Gdm | Channel | Dm | Space
```

**Source:** [getRoom](https://github.com/towns-protocol/towns/blob/main/packages/react-sdk/src/utils.ts)

## Parameters

### sync

* **Type:** `SyncAgent`

### streamId

* **Type:** `string`

## Return Type

```ts theme={null}
Gdm | Channel | Dm | Space
```
