PusherChannelsConnection class abstract
An interface that delegates connection of an instance of PusherChannelsClient with a server.
Implement this interface to inject it into PusherChannelsClient.custom.
- Implementers
Constructors
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
-
close(
) → FutureOr< void> - Closes the connection.
-
connect(
{required PusherChannelsConnectionOnDoneCallback onDoneCallback, required PusherChannelsConnectionOnErrorCallback onErrorCallback, required PusherChannelsConnectionOnEventCallback onEventCallback}) → void - Tries to establish connection.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
ping(
) → void - "Pinges" a server to ensure that connection is alive.
-
sendEvent(
String eventEncoded) → void - Sends a message to a server.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited