Actioncable.Channel (actioncable v0.1.2)

This module handles Channel Websocket using Redis connection

Link to this section Summary

Functions

Examples

iex> ActioncableWeb.Channel("room_1", %{"action"=>"write", "args" => "hello"})

Link to this section Functions

Link to this function

broadcast(channel, message)

Examples

iex> ActioncableWeb.Channel("room_1", %{"action"=>"write", "args" => "hello"})

iex> ActioncableWeb.Channel("room_1", %{"action"=>"write"})

Broadcast message to all subscriber from given channel.

Link to this function

channel_send(list, message)

Link to this function

get_channel(channel)

Link to this function

subscribe(channel, pid)

Link to this function

unsubscribe(channel, pid)