Actioncable.Channel (actioncable v0.2.1)
This module handles Channel Websocket using Redis connection
Link to this section Summary
Functions
Examples
iex> Actioncable.Channel("room_1", %{"action"=>"write", "args" => "hello"})
Link to this section Functions
Link to this function
broadcast(channel, message)
Examples
iex> Actioncable.Channel("room_1", %{"action"=>"write", "args" => "hello"})
iex> Actioncable.Channel("room_1", %{"action"=>"write"})
Broadcast message to all subscriber from given channel.
Link to this function
broadcast(channel, id, message)
Link to this function
channel_send(list, channel, message)
Link to this function
channel_send(list, channel, id, message)
Link to this function
get_channel(channel)
Link to this function
subscribe(channel, pid)
Link to this function