Adapter class abstract
Adapts an abstract medium to serve the pub_sub
RPC protocol.
- Implementers
Constructors
- Adapter()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onPublish
→ Stream<
PublishRequest> -
Fires an event whenever a client tries to publish data.
no setter
-
onSubscribe
→ Stream<
SubscriptionRequest> -
Fires whenever a client tries to subscribe to an event.
no setter
-
onUnsubscribe
→ Stream<
UnsubscriptionRequest> -
Fires whenever a client cancels a subscription.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future - Disposes of this adapter.
-
isTrustedPublishRequest(
PublishRequest request) → bool -
Determines if a given
request
comes from a trusted source. -
isTrustedSubscriptionRequest(
SubscriptionRequest request) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
start(
) → void - Start listening for incoming clients.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited