PusherPresenceChannel class
This class represents a Pusher presence channel.
- Inheritance
-
- Object
- Channel
- PusherChannel
- PusherPresenceChannel
- Implemented types
Constructors
- PusherPresenceChannel(PusherClient pusher, String name, ConnectorOptions options)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The name of the channel.
finalinherited
- options → ConnectorOptions
-
The Echo options.
finalinherited
- pusher → PusherClient
-
The Pusher client instance.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subscription ↔ Channel
-
The subscription of the channel.
getter/setter pairinherited
Methods
-
error(
Function callback) → PusherChannel -
Register a callback to be called anytime a subscription error occurs.
inherited
-
here(
Function callback) → PusherPresenceChannel -
Register a callback to be called anytime the member list changes.
override
-
joining(
Function callback) → PusherPresenceChannel -
Listen for someone joining the channel.
override
-
leaving(
Function callback) → PusherPresenceChannel -
Listen for someone leaving the channel.
override
-
listen(
String event, Function callback) → PusherChannel -
Listen for an event on the channel instance.
inherited
-
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.
inherited
-
stopListening(
String event, [Function? callback]) → PusherChannel -
Stop listening for an event on the channel instance.
inherited
-
stopListeningForWhisper(
String event, [Function? callback]) → Channel -
Stop listening for a whisper event on the channel instance.
inherited
-
subscribe(
) → void -
Subscribe to a Pusher channel.
inherited
-
subscribed(
Function callback) → PusherChannel -
Register a callback to be called anytime a subscription succeeds.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
unsubscribe(
) → void -
Unsubscribe from a channel.
inherited
-
whisper(
String eventName, dynamic data) → PusherPresenceChannel - Trigger client event on the channel.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited