Channel class

Represents a channel in Pusher.

Implementers

Constructors

Channel({required PusherClient client, required String name})

Properties

authOptions → PusherAuthOptions
The authentication options of the client.
no setter
client → PusherClient
The pusher client.
final
hashCode → int
The hash code for this object.
no setterinherited
isEncrypted → bool
no setter
isPresence → bool
no setter
isPrivate → bool
no setter
isPublic → bool
no setter
name → String
The name of the channel.
final
options → PusherOptions
The options of the client.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subscribed ↔ bool
Whether the channel is subscribed or not.
getter/setter pair

Methods

bind(String event, Function listener) → void
Binds a listener to an event.
handleEvent(String event, dynamic data) → void
Handles an event.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onSubscriptionSuccess(Function listener) → void
Binding for the subscription success event.
subscribe([bool force = false]) → void
Subscribes to the channel.
toString() → String
A string representation of this object.
inherited
unbind(String event) → void
Unbinds a listener from an event.
unsubscribe() → void
Unsubscribes from the channel.

Operators

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