phoenix-channel / ch.kuon.phoenix / Channel / push

push

fun push(event: String, payload: JSONObject = JSONObject(), timeout: Int = this.timeout): Push

Push a message to the channel.

Parameters

event - Event name

payload - Arbitrary payload

timeout - Timeout, default to socket timeout

Return
A push that can be used for chaining