Client class
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