RealtimeSocket class abstract interface

The socket HorusRealtime talks through.

An interface rather than a WebSocketChannel directly so a test can drop a connection, replay frames and assert on what was sent without a real server, a real port, or a real wait.

Properties

hashCode int
The hash code for this object.
no setterinherited
messages Stream<Object?>
Closes when the connection ends, however it ended.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close([int? code, String? reason]) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(String data) → void
toString() String
A string representation of this object.
inherited

Operators

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