PusherClient class

Inheritance

Constructors

PusherClient(String appKey, PusherOptions options, {bool lazyConnect = false, bool enableLogging = false, void onError(ConnectionError)?, void onConnectionStateChange(ConnectionStateChange)?})

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

connect({void onConnectionStateChange(ConnectionStateChange)?, void onError(ConnectionError)?}) Future
Connect the client to pusher
inherited
disconnect() Future
Disconnect the client from pusher
inherited
getSocketId() String?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
subscribe(String channelName) Channel
Subscribe to a channel Use the returned Channel to bind events
inherited
toString() String
A string representation of this object.
inherited
unsubscribe(String channelName) Future
Unsubscribe from a channel
inherited

Operators

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