class Session
- Session
- Reference
- Object
Defined in:
models/session.crConstant Summary
-
Log =
::App::Log.for("session")
Constructors
-
.new(tcp_transport : Bool, server_port : Int32, websocket : HTTP::WebSocket, tracking : Array(String))
Binary protocol: signal, remote_ip, client_id, size, data
Instance Method Summary
- #configure_websocket
- #connection_closed(remote_ip, client_id, message)
-
#connection_opened(remote_ip, client_id, message)
state callbacks:
-
#connections : Hash(String, Array(UInt64))
remote_ip => [client_ids]
- #io_callback(message)
- #parse_tcp(message)
- #parse_udp(message)
-
#tracking : Array(String)
Array of IP addresses
Constructor Detail
def self.new(tcp_transport : Bool, server_port : Int32, websocket : HTTP::WebSocket, tracking : Array(String))
#
Binary protocol: signal, remote_ip, client_id, size, data