Connection constructor
Connection({
- required String url,
- required EventHandler eventHandler,
- required VoidCallback afterConnect,
Implementation
Connection({
required this.url,
required this.eventHandler,
required this.afterConnect,
}) {
bind('pusher:connection_established', _connectHandler);
bind('pusher:pong', _pongHandler);
bind('pusher:error', _pusherErrorHandler);
}