TestSocket class

Shim Socket for testing

Inheritance
Mixed in types
Implementers

Constructors

TestSocket()

Properties

closed bool
read / write, inherited
connected bool
read / write, inherited
doneHandler StringCallback
read / write, inherited
errorHandler StringCallback
read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
messageHandler Uint8ListCallback
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sent Queue<String>
read / write, inherited

Methods

close() → void
inherited
connect(Uri address, VoidCallback onConnected, StringCallback onError, {int timeoutSeconds = 15, bool ignoreBadCert = false}) → void
Connects the socket to uri then invokes onConnected or onError.
override
handleDone(StringCallback doneHandler) → void
inherited
handleError(StringCallback errorHandler) → void
inherited
listen(Uint8ListCallback messageHandler) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
send(String text) → void
Sends text over the socket.
override
sendRaw(Uint8List raw) → void
Sends raw over the socket.
override
toString() String
A string representation of this object. [...]
inherited

Operators

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