Echo constructor
Echo({
- EchoBroadcasterType broadcaster = EchoBroadcasterType.Pusher,
- required dynamic client,
- Map<
String, dynamic> ? options,
Create a new class instance.
Implementation
Echo({
EchoBroadcasterType broadcaster = EchoBroadcasterType.Pusher,
required dynamic client,
Map<String, dynamic>? options,
}) {
this.broadcaster = broadcaster;
this.options = options ?? {};
this.options['client'] = client;
this.connect();
}