ActionCable::Server
Constructors
Instance methods
connection_identifiers
Identifier names registered via Connection.identified_by (the gem's Server#connection_identifiers).
connections
Sourcemount_path
pubsub
register_connection(connection : Connection) : Nil
--- connection registry ----------------------------------------- Connections register on open and unregister on close; used for introspection (the remote-disconnect delivery itself rides the per-connection internal channel through pubsub, so it works across processes).
remote_connections
Remote-connection searches: find connections by identifier and disconnect them across all servers sharing the pubsub adapter.
shutdown
Sourceunregister_connection(connection : Connection) : Nil
Sourcews_handler
Builds an HTTP handler mounting the cable endpoint at #mount_path; non-cable and non-upgrade requests pass through. Mount like:
server = ActionCable::Server.new HTTP::Server.new([server.ws_handler]) # combined with app routes