Skip to content

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:810

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.