Server
Inherits Packets < ServerHandler < Packets < Reference < Object
Constants
BUFFER_SIZE = 1024 * 1024
KEEP_ALIVE_INTERVAL = 5000.milliseconds
PROTOCOL_VERSION = 47
PROTOCOL_VERSION_S = "1.8.9"
Constructors
new(encryption_enabled : Bool = false, compression : Int32 = -1, keep_alive : Time::Span = 30.seconds)
SourceInstance methods
accept_clients
Sourceclients
Sourceclose(id)
Sourcecompression
Sourceencryption
Sourceencryption_enabled
Sourcehandle(id, packet : Handshaking::S::Handshake)
Sourcehandle(id, packet : Login::S::LoginStart)
Sourcehandle(id, packet : Login::S::EncryptionResponse)
Sourcehandle(id, packet : Status::S::Ping)
Sourcehandle(id, packet : Play::S::KeepAlive)
Sourcekeep_alive(id)
Sourcekeep_alive
Sourceon
Sourceonce
Sourceread(id)
Sourcereceive
Sourceserver
Source