Pusher class
Used to listen to events sent through pusher
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
eventCallbacks
↔ Map<
String, void Function(Event?)?> -
getter/setter pair
Static Methods
-
connect(
{void onConnectionStateChange(ConnectionStateChange?)?, void onError(ConnectionError?)?}) → Future - Connect the client to pusher
-
disconnect(
) → Future - Disconnect the client from pusher
-
init(
String appKey, PusherOptions options, {bool enableLogging = false}) → Future - Setup app key and options
-
subscribe(
String channelName) → Future< Channel> - Subscribe to a channel Use the returned Channel to bind events
-
unsubscribe(
String channelName) → Future - Unsubscribe from a channel