phoenix-channel / ch.kuon.phoenix / Socket / channel

channel

fun channel(topic: String, params: JSONObject = JSONObject()): Channel

Prefered constructor for channels.

Creates a channel and register it with the Socket.

Parameters

topic - The channel topic

params - Params sent to the server on join

Return
The created channel