push

suspend fun push(event: String, payload: Payload, timeout: Long = this.timeout): Push

Tries to send the specified event and payload to bound Channel if it has already been joined.

Return

Push

Parameters

event

the event associated to the given payload

payload

the payload to send through the bound Channel

timeout

an optional Long value defining the duration after which a timeout event will be triggered.

Throws

if the Channel has not been joined.