broadcast

abstract suspend fun broadcast(event: String, payload: BroadcastPayload)(source)

Sends a message to everyone who joined the channel. Can be used even if you aren't connected to the channel.

Parameters

event

the broadcast event. Example: mouse_cursor

payload

the broadcast payload