Channel class abstract

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) → void
Register a callback to be called anytime an error occurs.
listen(String event, Function callback) → void
Listen for an event on the channel instance.
listenForWhisper(String event, Function callback) → void
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) → void
Listen for an event on the channel instance.
stopListening(String event, [Function? callback]) → void
Stop listening to an event on the channel instance.
stopListeningForWhisper(String event, [Function? callback]) → void
Stop listening for a whisper event on the channel instance.
subscribe() Future<void>
subscribe channel
subscribed(Function callback) → void
Register a callback to be called anytime a subscription succeeds.
toString() String
A string representation of this object.
inherited
unsubscribe() Future<void>
Unsubscribe channel

Operators

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