Cable::Connection
Constants
CHANNELS_MUTEX = Mutex.new
Constructors
Class methods
Instance methods
channels
Sourceclose
Sourceclosed?
Sourceconnect
Sourceconnection_identifier
Sourceconnection_rejected?
Sourceconnection_requesting_duplicate_channel_subscription?(payload)
ensure we only allow subscribing to the same channel once from a connection
identifier
Sourceinternal_identifier
Sourcemessage(payload : Cable::Payload)
Sourcereceive(message : String)
Convert the message to a proper Payload.
The Cable::Handler will handle catching SerializableError,
and close the socket and connection
reject(payload : Cable::Payload)
Sourcereject_unauthorized_connection
Sourcesocket
Sourcestarted_at
Sourcesubscribe(payload : Cable::Payload)
Sourcetoken
Sourceunsubscribe(payload : Cable::Payload)
SourceMacros
identified_by(name)
Sourceowned_by(type_definition)
Source