# Channels.subscribeFunction.

subscribe(ws::WebSockets.WebSocket, channel::ChannelId) :: Void

Subscribes a web socket client ws to channel.

source

# Channels.unsubscribeFunction.

unsubscribe(ws::WebSockets.WebSocket, channel::ChannelId) :: Void

Unsubscribes a web socket client ws from channel.

source

# Channels.unsubscribe_clientFunction.

unsubscribe_client(ws::WebSockets.WebSocket, channel::ChannelId) :: Void

Unsubscribes a web socket client ws from all the channels.

source

# Channels.push_subscriptionFunction.

push_subscription(client::ClientId, channel::ChannelId) :: Void

Adds a new subscription for client to channel.

source

# Channels.pop_subscriptionFunction.

pop_subscription(client::ClientId, channel::ChannelId) :: Void

Removes the subscription of client to channel.

source

pop_subscription(client::ClientId) :: Void

Removes all subscriptions of client.

source

# Channels.broadcastFunction.

broadcast(channels::Vector{ChannelId}, msg::String) :: Void

Pushes msg to all the clients subscribed to the channels in channels.

source

broadcast(msg::String) :: Void

Pushes msg to all the clients subscribed to all the channels.

source