Pusher class
Constructors
- Pusher({required String key, String cluster = 'eu', Connection? connection})
Properties
-
channels
→ Map<
String, Channel> -
final
- client → String
-
final
- cluster → String
-
final
- connection ↔ Connection
-
latefinal
- globalCallback ↔ PusherGlobalCallback?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String
-
final
- protocol → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url → String
-
final
- version → String
-
final
Methods
-
afterConnect(
) → void -
bindGlobal(
PusherGlobalCallback callback) → void -
connect(
) → Future< void> -
connectionHandler(
String eventName, String channelName, Map< String, dynamic> data) → void -
disconnect(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
subscribe(
String channelName) → Channel -
toString(
) → String -
A string representation of this object.
inherited
-
trigger(
{required String channelName, required String eventName, dynamic data}) → void -
unbindGlobal(
) → void -
unsubscribe(
String channelName) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited