Cable::Payload
Inherits JSON::Serializable::Unmapped < JSON::Serializable < Struct < Value < Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
action
Sourceaction?
Sourceafter_initialize
After the Payload is deserialized, parse the data. This will ensure we know if it's an action.
channel
Sourcechannel_params
These are the additional data sent with the identifier
e.g. {channel: "RoomChannel", room_id: 1}
channel_params["room_id"] # => 1
command
Sourcedata
Sourceidentifier
Source