Type Alias: RoomEventHandler()\<TPresence, TEvent\>
@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.
Type Parameters
Section titled “Type Parameters”TPresence
Section titled “TPresence”TPresence extends PresenceData
The custom peer presence shape.
TEvent
Section titled “TEvent”TEvent extends RoomEventName
The event name being handled.
Parameters
Section titled “Parameters”payload
Section titled “payload”RoomEventMap<TPresence>[TEvent]
The payload for the event.
Returns
Section titled “Returns”void
Nothing.