channel

fun channel(topic: String, socket: SocketFlow, params: Payload = emptyMap()): Channel

Creates an instance of Channel bound to the specified topic and Socket, taking optional parameters.

Return

an instance of Channel

Parameters

topic

the topic to which the Channel will subscribe

socket

the socket to which the Channel should be bound

params

optional parameters to send to the server while attempting to Channel.join the Phoenix Channel.