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

Type Alias: RoomEventHandler()\<TPresence, TEvent\>

@roomful/core


@roomful/core / RoomEventHandler

Type Alias: RoomEventHandler()<TPresence, TEvent>

Section titled “Type Alias: RoomEventHandler()<TPresence, TEvent>”

RoomEventHandler<TPresence, TEvent> = (payload) => void

Defined in: packages/core/src/types.ts:730

Handles a built-in room event.

TPresence extends PresenceData

The custom peer presence shape.

TEvent extends RoomEventName

The event name being handled.

RoomEventMap<TPresence>[TEvent]

The payload for the event.

void

Nothing.