Interface: HostMessageContext<M>
Defined in: index.ts:79
Handed to RoomRelayDelegate.onHostMessage for a host's own frames.
Type Parameters
M
M
Methods
cacheForReplay()
cacheForReplay(
message):void
Defined in: index.ts:81
Set this host's replay slot and fan the frame out to its current clients.
Parameters
message
M
Returns
void
sendToClient()
sendToClient(
clientId,message):boolean
Defined in: index.ts:83
Route a frame to one client of this host; false if clientId is absent or gone.
Parameters
clientId
string | undefined
message
M
Returns
boolean