FakeGraphqlWsSession class final
Server side of graphql-transport-ws limited to the events subscription (02e §6).
- Inheritance
-
- Object
- FakeSession
- FakeGraphqlWsSession
Constructors
- FakeGraphqlWsSession(FakeEventBus bus, MessageSocket socket, FakePrincipalLookup lookup)
-
Starts serving
socket.
Properties
- bus → FakeEventBus
-
Bus.
finalinherited
- closed → bool
-
Whether the session is closed.
no setterinherited
-
filters
→ Set<
String> -
Subscribed filters.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- lookup → FakePrincipalLookup
-
Token → scopes.
finalinherited
- 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 pairinherited
- socket → MessageSocket
-
The server side socket.
finalinherited
- token ↔ String?
-
Token presented.
getter/setter pairinherited
Methods
-
allowed(
String topic) → bool -
Whether scopes may see
topic.inherited -
close(
[int code = 1000, String? reason]) → Future< void> -
Closes the session.
override
-
deliver(
FreedomeEvent e) → void -
Sends an event if it matches a filter and the scope allows it.
override
-
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
sinceSeqfortopics, or null when the gap is too old.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited