TestSocket class

Shim Socket for testing

Inheritance
Mixed-in types
Implementers

Constructors

TestSocket()

Properties

closed bool
getter/setter pairinherited
connected bool
getter/setter pairinherited
connecting bool
getter/setter pairinherited
doneHandler StringCallback
getter/setter pairinherited
errorHandler StringCallback
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
messageHandler Uint8ListCallback
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sent Queue<String>
getter/setter pairinherited

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 nonexistent 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
shutdown(ConnectionDirection direction) → void
inherited
toString() String
A string representation of this object.
inherited

Operators

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