ITransportClient class abstract

Implementers

Constructors

ITransportClient()

Properties

credentials XtransportCredentials
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
log bool
should log
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status ConnectStatus
connectStatus disconnect, connecting, connected, paused
getter/setter pair

Methods

close() → void
close the socket
connect({String? host, int? port, Duration? duration, Duration? deadline}) Future<void>
connect to the server
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onClose(void fn()) → void
onClose Event Handler
onConnect(void fn()) → void
onClose Event Handler
onError(void fn(Error err)) → void
onError Event Handler
onMessage(void fn(Message msg)) → void
onMessage Event Handler
send(ITransportPacket obj) → void
send a Packet to connection ioSink
toString() String
A string representation of this object.
inherited

Operators

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