Channel class abstract

Implementers

Constructors

Channel(ConnectorOptions options)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
options ConnectorOptions
The Echo options.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

error(Function callback) Channel
Register a callback to be called anytime an error occurs.
listen(String event, Function callback) Channel
Listen for an event on the channel instance.
listenForWhisper(String event, Function callback) Channel
Listen for a whisper event on the channel instance.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notification(Function callback) Channel
Listen for an event on the channel instance.
stopListening(String event, [Function? callback]) Channel
Stop listening to an event on the channel instance.
stopListeningForWhisper(String event, [Function? callback]) Channel
Stop listening for a whisper event on the channel instance.
subscribe() → void
subscribe channel
subscribed(Function callback) Channel
Register a callback to be called anytime a subscription succeeds.
toString() String
A string representation of this object.
inherited
unsubscribe() → void
Unsubscribe channel

Operators

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