Channel

class Channel(val topic: String, paramsClosure: PayloadClosure, socket: Socket)

Represents a Channel bound to a given topic

Constructors

Link copied to clipboard
constructor(topic: String, params: Payload, socket: Socket)
constructor(topic: String, paramsClosure: PayloadClosure, socket: Socket)

Types

Link copied to clipboard

Channel specific events

Link copied to clipboard

States of a Channel

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The ref sent during the join message.

Link copied to clipboard

Params passed in through constructions and provided to the JoinPush

Link copied to clipboard

Functions

Link copied to clipboard
fun join(timeout: Long = this.timeout): Push
Link copied to clipboard
fun leave(timeout: Long = this.timeout): Push
Link copied to clipboard
fun off(event: String, ref: Int? = null)
Link copied to clipboard
fun on(event: String, callback: (Message) -> Unit): Int
fun on(event: Channel.Event, callback: (Message) -> Unit): Int
Link copied to clipboard
fun onClose(callback: (Message) -> Unit): Int
Link copied to clipboard
fun onError(callback: (Message) -> Unit): Int
Link copied to clipboard
fun onMessage(callback: (Message) -> Message)
Link copied to clipboard
fun push(event: String, payload: Payload, timeout: Long = this.timeout): Push