Pusher constructor
Pusher({
- required String key,
- String cluster = 'eu',
- 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,
);
}