Skip to content
Roomful is in public beta — install with the @beta tag. Share feedback →

Function: useRoom()

@roomful/react


@roomful/react / useRoom

useRoom<TPresence>(): Room<TPresence>

Defined in: react/src/index.ts:335

Returns the current room from RoomfulProvider.

TPresence extends PresenceData = PresenceData

The room presence shape to project onto the room.

Room<TPresence>

The current room instance.

When called outside RoomfulProvider.