PubSubSynchronizationChannel class

Synchronizes WebSockets using package:pub_sub.

Inheritance

Constructors

PubSubSynchronizationChannel(Client client)

Properties

client Client
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sink StreamSink<WebSocketEvent>
The sink for sending values to the other endpoint.
read-only, override
stream Stream<WebSocketEvent>
The single-subscription stream that emits values from the other endpoint.
read-only, override

Methods

cast<S>() StreamChannel<S>
Returns a copy of this with the generic type coerced to S. [...]
inherited
changeSink(StreamSink<WebSocketEvent> change(StreamSink<WebSocketEvent> sink)) StreamChannel<WebSocketEvent>
Returns a copy of this with sink replaced by change's return value.
inherited
changeStream(Stream<WebSocketEvent> change(Stream<WebSocketEvent> stream)) StreamChannel<WebSocketEvent>
Returns a copy of this with stream replaced by change's return value.
inherited
close() Future
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
pipe(StreamChannel<WebSocketEvent> other) → void
Connects this to other, so that any values emitted by either are sent directly to the other.
inherited
toString() String
Returns a string representation of this object.
inherited
transform<S>(StreamChannelTransformer<S, WebSocketEvent> transformer) StreamChannel<S>
Transforms this using transformer. [...]
inherited
transformSink(StreamSinkTransformer<WebSocketEvent, WebSocketEvent> transformer) StreamChannel<WebSocketEvent>
Transforms only the sink component of this using transformer.
inherited
transformStream(StreamTransformer<WebSocketEvent, WebSocketEvent> transformer) StreamChannel<WebSocketEvent>
Transforms only the stream component of this using transformer.
inherited

Operators

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

Constants

eventName → const String
The event name used to synchronize events on the server.
'angel_sync::event'