connect abstract method
void
connect({
- required PusherChannelsConnectionOnDoneCallback onDoneCallback,
- required PusherChannelsConnectionOnErrorCallback onErrorCallback,
- required PusherChannelsConnectionOnEventCallback onEventCallback,
Tries to establish connection.
onDoneCallback
must be called when connection is closed.onErrorCallback
must be called when a connection error is thrown.onEventCallback
must be called when an event is received.
Implementation
void connect({
required PusherChannelsConnectionOnDoneCallback onDoneCallback,
required PusherChannelsConnectionOnErrorCallback onErrorCallback,
required PusherChannelsConnectionOnEventCallback onEventCallback,
});