PusherChannel class

This class represents a pusher channel.

Inheritance
Implementers

Constructors

PusherChannel(PusherClient pusher, String name, ConnectorOptions options)
Create a new class instance.

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The name of the channel.
final
options ConnectorOptions
The Echo options.
finalinherited
pusher → PusherClient
The Pusher client instance.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subscription ↔ Channel
The subscription of the channel.
getter/setter pair

Methods

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

Operators

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