class Cable::Channel
- Cable::Channel
- Reference
- Object
Defined in:
cable/channel.crConstant Summary
-
CHANNELS =
{} of String => Cable::Channel.class
Constructors
Class Method Summary
- .broadcast_to(channel : String, message : JSON::Any)
- .broadcast_to(channel : String, message : String)
- .broadcast_to(channel : String, message : Hash(String, String))
Instance Method Summary
- #close
- #connection : Cable::Connection
- #identifier : String
- #params : Hash(String, Cable::Payload::RESULT)
- #perform(action, message)
- #receive(message)
- #reject
- #stream_from(stream_identifier : Nil | String)
- #stream_identifier : String | Nil
- #subscribed
- #subscription_rejected? : Bool
- #unsubscribed
Constructor Detail
def self.new(connection : Cable::Connection, identifier : String, params : Hash(String, Cable::Payload::RESULT), reject_subscription : Bool = false)
#