FakeServerConnection class final Testing
One client connection to a FakeIndiServer.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isClosed → bool
-
Whether the connection is closed.
no setter
-
protocolErrors
→ List<
IndiProtocolException> -
Protocol errors found in what the client sent.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- server → FakeIndiServer
-
The server this connection belongs to.
final
Methods
-
blobMode(
String device, String property) → BlobMode -
The BLOB mode the client set for
propertyofdeviceon this connection. -
close(
) → Future< void> - Closes the connection.
-
fail(
Object error) → void -
Simulates a network failure: the client sees
errorand the connection closes. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
IndiCommand command) → void -
Sends
commandto the client on this connection only. -
sendRaw(
List< int> bytes) → void - Sends raw bytes, for example malformed XML.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited