struct Cable::Payload

Included Modules

Defined in:

cable/payload.cr

Constructors

Instance Method Summary

Constructor Detail

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

Instance Method Detail

def action : String #

def action? : Bool #

def after_initialize #

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


def channel : String #

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

def command : String #

def data : Hash(String, RESULT) #

def identifier : Indentifier #