PusherChannelsWebSocketConnection class
An implementation of PusherChannelsConnection through WebSocketChannel
.
- Implemented types
Constructors
- PusherChannelsWebSocketConnection({required Uri uri})
Properties
Methods
-
close(
) → Future< void> -
Closes the connection.
override
-
connect(
{required PusherChannelsConnectionOnDoneCallback onDoneCallback, required PusherChannelsConnectionOnErrorCallback onErrorCallback, required PusherChannelsConnectionOnEventCallback onEventCallback}) → void -
Tries to establish connection.
override
-
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.
override
-
sendEvent(
String eventEncoded) → void -
Sends a message to a server.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited