Connection constructor

Connection({
  1. required String url,
  2. required EventHandler eventHandler,
  3. 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);
}