Pusher constructor

Pusher({
  1. required String key,
  2. String cluster = 'eu',
  3. Connection? connection,
})

Implementation

Pusher({required this.key, this.cluster = 'eu', Connection? connection}) {
  this.connection = connection ??
      Connection(
        url:
            'wss://ws-$cluster.$url/app/$key?client=$client&version=$version&protocol=$protocol',
        eventHandler: connectionHandler,
        afterConnect: afterConnect,
      );
}