struct

Cable::Payload

Inherits JSON::Serializable::Unmapped < JSON::Serializable < Struct < Value < Object

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

action
Source
action?
Source
after_initialize

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

Source
channel
Source
channel_params

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

channel_params["room_id"] # => 1
Source
command
Source
data
Source
identifier
Source

Nested types