class

Cable::Server

Inherits Cable::Debug < Reference < Object

Constructors

Instance methods

active_connections_for(token : String) : Array(Connection)

Only returns connections opened on this instance.

Source
add_connection(connection)
Source
backend
Source
backend_publish
Source
backend_subscribe
Source
connections

Returns the current connections

Source
count_error!
Source
errors

The String key is the connection_identifier value for Cable::Connection

Source
fiber_channel
Source
pinger
Source
publish(channel : String, message : String)

Some backends only accept strings, so we should be strict here

Source
remote_connections
Source
remove_connection(connection_id)
Source
restart?
Source
safe_decode_message(message)
Source
send_to_channels(channel_identifier, message)
Source
send_to_internal_connections(connection_identifier : String, message : String)
Source
shutdown
Source
subscribe_channel(channel : Channel, identifier : String)
Source
subscribed_channels_for(token : String) : Array(Channel)

Only returns channel subscriptions opened on this instance.

Source
unsubscribe_channel(channel : Channel, identifier : String)
Source