Towns home pagelight logodark logo
  • X (Ex. Twitter)
  • Github
Learn
  • Introduction
  • Towns Smart Contracts
  • Towns Messaging Protocol
  • Towns DAO
  • TOWNS Token
  • Grants
Run
  • Introduction
  • Node Operator Tutorials
  • Run Tutorials
  • Resources
Build
  • Messaging Data Structures
  • Delegate Key Signing
  • Towns Encryption Protocol
React SDK
  • Getting Started
  • API
    • connectTowns
    • connectTownsWithBearerToken
    • getRoom
    • signAndConnect
    • TownsSyncProvider
    • useAdminRedact
    • useAgentConnection
    • useChannel
    • useCreateChannel
    • useCreateDm
    • useCreateGdm
    • useCreateSpace
    • useDm
    • useGdm
    • useJoinSpace
    • useMember
    • useMemberList
    • useMyMember
    • useObservable
    • useReactions
    • useRedact
    • useScrollback
    • useSendMessage
    • useSendReaction
    • useSetDisplayName
    • useSetEnsAddress
    • useSetNft
    • useSetUsername
    • useSpace
    • useSyncAgent
    • useThreads
    • useTimeline
    • useTowns
    • useTownsAuthStatus
    • useUserDms
    • useUserGdms
    • useUserSpaces
API

getRoom

​
Imports

import { getRoom } from '@towns-protocol/react-sdk'

​
Definition

function getRoom(
  sync: SyncAgent,
  streamId: string,
): Gdm | Channel | Dm | Space

Source: getRoom

​
Parameters

​
sync

  • Type: SyncAgent

​
streamId

  • Type: string

​
Return Type

Gdm | Channel | Dm | Space

Was this page helpful?

connectTownsWithBearerTokensignAndConnect
twittergithubwebsite
Powered by Mintlify
On this page
  • Imports
  • Definition
  • Parameters
  • sync
  • streamId
  • Return Type
Assistant
Responses are generated using AI and may contain mistakes.