struct Cable::Payload

Included Modules

Defined in:

cable/payload.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def action : String #

[View source]
def action? : Bool #

[View source]
def after_initialize #

After the Payload is deserialized, parse the data. This will ensure we know if it's an action.


[View source]
def channel : String #

[View source]
def channel_params : Hash(String, RESULT) #

These are the additional data sent with the identifier e.g. {channel: "RoomChannel", room_id: 1}

channel_params["room_id"] # => 1

[View source]
def command : String #

[View source]
def data : Hash(String, RESULT) #

[View source]
def identifier : Indentifier #

[View source]