broadcast

abstract suspend fun broadcast(event: String, message: JsonObject)(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

message

the message to send as a JsonObject