class

Steamcr::Client

Inherits Reference < Object

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.

Constructors

new(debug : Bool = ENV.has_key?("STEAMCR_DEBUG"))
Source

Instance methods

auth
Source
connect
Source
disconnect
Source
emit(event : Event)
Source
events
Source
handle_multi(message : Protocol::PacketMessage)
Source
handle_packet_message(message : Protocol::PacketMessage)
Source
heartbeat(sleep_time)
Source
register_handler(handler : PacketHandler)
Source
session_id
Source
session_id=(session_id : Int32 | Nil)
Source
steam_id
Source
steam_id=(steam_id : UInt64)
Source
write(msg : Protocol::ClientMsg)
Source