class Steamcr::Client

Overview

Represents a Client on the Steam Network. The Client creates a connection to the Steam networks, and send and receives Message objects to that connection.

The Client holds a collection of handlers that react to received packets, if they care about the packet data.

Defined in:

steamcr/client.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(debug : Bool = ENV.has_key?("STEAMCR_DEBUG")) #

[View source]

Instance Method Detail

def auth : Steamcr::Auth? #

[View source]
def connect #

[View source]
def disconnect #

[View source]
def emit(event : Event) #

[View source]
def events : Channel(Steamcr::Event) #

[View source]
def gc : Steamcr::GameCord? #

[View source]
def handle_multi(message : Protocol::PacketMessage) #

[View source]
def handle_packet_message(message : Protocol::PacketMessage) #

[View source]
def heartbeat(sleep_time) #

[View source]
def register_handler(handler : PacketHandler) #

[View source]
def session_id : Int32? #

[View source]
def session_id=(session_id : Int32 | Nil) #

[View source]
def steam_id : UInt64 #

[View source]
def steam_id=(steam_id : UInt64) #

[View source]
def write(msg : Protocol::ClientMsg) #

[View source]