class

Sellia::Server::ConnectionManager

Inherits Reference / Object

Constructors

Instance methods

add_connection(connection : ClientConnection) : Nil
Source
authenticated?(api_key : String) : Bool
Source
broadcast(message : Protocol::Message)
Source
connection_ids

Get all connection IDs

Source
each

Iterate over all connections (returns a copy to avoid holding lock)

Source
find(client_id : String) : ClientConnection | Nil
Source
find_by_api_key(api_key : String) : ClientConnection | Nil
Source
register(api_key : String, connection : ClientConnection | Nil = nil) : String
Source
size
Source
unregister(client_id : String) : ClientConnection | Nil
Source