FakeSession class abstract

One realtime session (any protocol).

Implementers

Constructors

FakeSession(FakeEventBus bus, MessageSocket socket, FakePrincipalLookup lookup)
Registers the session on bus.

Properties

bus → FakeEventBus
Bus.
final
closed → bool
Whether the session is closed.
no setter
filters → Set<String>
Subscribed filters.
final
hashCode → int
The hash code for this object.
no setterinherited
lookup → FakePrincipalLookup
Token → scopes.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scopes ↔ Set<String>?
Scopes of the authenticated principal (null before hello / init).
getter/setter pair
socket → MessageSocket
The server side socket.
final
token ↔ String?
Token presented.
getter/setter pair

Methods

allowed(String topic) → bool
Whether scopes may see topic.
close([int code = 1000, String? reason]) → Future<void>
Closes the session.
deliver(FreedomeEvent e) → void
Sends an event if it matches a filter and the scope allows it.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
replay(Iterable<String> topics, int sinceSeq) → List<FreedomeEvent>?
Matching ring-buffer events after sinceSeq for topics, or null when the gap is too old.
toString() → String
A string representation of this object.
inherited

Operators

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