Client class

A Class that represents a Socket Client.

Constructors

Client(ServerIO server, Socket conn)
Client constructor.

Properties

conn Socket
getter/setter pair
connectBuffer List<String>
getter/setter pair
decoder Decoder
getter/setter pair
encoder Encoder
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id ↔ dynamic
getter/setter pair
nsps Map
getter/setter pair
request ↔ dynamic
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
server ServerIO
getter/setter pair
sockets List
getter/setter pair

Methods

close() → void
Closes the underlying connection.
connect(String name, [dynamic query]) → void
Connects a client to a namespace.
destroy() → void
Cleans up event listeners.
disconnect() → void
Disconnects from all namespaces and closes transport.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onClose(dynamic reason) → void
Called upon transport close. reason reason
ondata(dynamic data) → void
Called with incoming transport data.
ondecoded(dynamic packet) → void
Called when parser fully decodes a packet.
onError(dynamic err) → void
Handles an error. err error object
packet(dynamic packet, [Map? opts]) → void
Writes a packet to the transport. packet packet object opts options
remove(dynamic socket) → void
Removes a socket. Called by each Socket.
setup() → void
Sets up event listeners.
toString() String
A string representation of this object.
inherited

Operators

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