class Session

Defined in:

models/session.cr

Constant Summary

Log = ::App::Log.for("session")

Constructors

Instance Method Summary

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


[View source]

Instance Method Detail

def configure_websocket #

[View source]
def connection_closed(remote_ip, client_id, message) #

[View source]
def connection_opened(remote_ip, client_id, message) #

state callbacks:


[View source]
def connections : Hash(String, Array(UInt64)) #

remote_ip => [client_ids]


[View source]
def io_callback(message) #

[View source]
def parse_tcp(message) #

[View source]
def parse_udp(message) #

[View source]
def tracking : Array(String) #

Array of IP addresses


[View source]