GameSocketClient class

Inheritance

Constructors

GameSocketClient({ClientOptions? options})

Properties

address InternetAddress?
The InternetAddress used to connect this socket.
no setter
hashCode int
The hash code for this object.
no setterinherited
host ↔ dynamic
getter/setter pair
namespace String
getter/setter pair
ping → AvgPing
final
pingInterval Duration
no getter
port int
getter/setter pair
readBytes int
no setter
reconnectAttempts int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state ReadyState
no setter
statistic SocketStat?
no setter
waitingPong bool
getter/setter pair
writtenBytes int
no setter

Methods

bind(EngineSocket engine) → void
close() → void
Disconnect the client.
connect(dynamic host, int port, {String namespace = '/'}) → void
A TCP connection between two sockets. host can either be a String or an InternetAddress.
emit(String event, [dynamic data]) → void
inherited
getOptions() ClientOptions
hasListeners(String event) bool
inherited
listeners(String event) List<EventHandler>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
off(String event, [EventHandler? handler]) → void
inherited
offAll() → void
inherited
on(String event, EventHandler handler) → void
inherited
once(String event, EventHandler handler) → void
inherited
onClose(bool forced) → void
onClosing() → void
onCreatePacket(int code, int version, Schema schema) Packet
onData(Uint8List data) → void
onDecoded(Packet packet) → void
onError(Object error) → void
onGameSocketPacket(GameSocketPacket packet) → void
onOpen(InternetAddress address) → void
onPacket(Packet packet) → void
onPongPacket(GameSocketPacket packet) → void
onRaw(Uint8List data) → void
onRoomPacket(RoomPacket packet) → void
send(Uint8List data) → void
Send a Uint8List data.
sendMessage(Message message) → void
Send a message.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited