DwFakeConnection class final
One live connection as the fake server sees it.
Properties
- accountId ↔ int?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The id sent in
hello.final - isOpen ↔ bool
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
subscriptions
→ Set<
String> -
Wire names of the channels this connection is subscribed to.
final
- token ↔ String?
-
getter/setter pair
- url → Uri
-
The upgrade URL, query included.
final
Methods
-
close(
{int? code, String? reason}) → Future< void> -
Drops the connection from the server side, with a WebSocket close
codeandreasonwhen given. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
DwServerMessage message) → void -
Sends
messageto the client as the server would. -
sendFrame(
String frame) → void - Sends a raw frame — for tests of what a client does with a message it cannot read.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited