class Cable::Channel

Defined in:

cable/channel.cr

Constant Summary

CHANNELS = {} of String => Cable::Channel.class

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(connection : Cable::Connection, identifier : String, params : Hash(String, Cable::Payload::RESULT), reject_subscription : Bool = false) #

[View source]

Class Method Detail

def self.broadcast_to(channel : String, message : JSON::Any) #

[View source]
def self.broadcast_to(channel : String, message : String) #

[View source]
def self.broadcast_to(channel : String, message : Hash(String, String)) #

[View source]

Instance Method Detail

def close #

[View source]
def connection : Cable::Connection #

[View source]
def identifier : String #

[View source]
def params : Hash(String, Cable::Payload::RESULT) #

[View source]
def perform(action, message) #

[View source]
def receive(message) #

[View source]
def reject #

[View source]
def stream_from(stream_identifier : Nil | String) #

[View source]
def stream_identifier : String | Nil #

[View source]
def subscribed #

[View source]
def subscription_rejected? : Bool #

[View source]
def unsubscribed #

[View source]