ConnectionInterface class

Interface for connections, e.g. Socket or WebSocket.

Implementers

Constructors

ConnectionInterface()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

close() → void
Closed the connection.
handleDone(StringCallback doneHandler) → void
Involes handleDone if the connection is closed normally.
handleError(StringCallback errorHandler) → void
Invokes errorHandler if a connection error occurs.
listen(Uint8ListCallback messageHandler) → void
Invokes messageHandler upon reading input from the connection.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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