protocol 8. (#134)
* protocol 8. * add FastConnectOptions. * update. * fix. * Deprecated the top connect method. * Add fast connect button in example. * Create a Listener before connecting. * Force protocol-v7 for deprecated APIs. * remove commented out line. * relative path import. * update.
This commit is contained in:
@@ -64,6 +64,7 @@ class Engine extends Disposable with EventsEmittable<EngineEvent> {
|
||||
|
||||
ConnectOptions connectOptions;
|
||||
RoomOptions roomOptions;
|
||||
FastConnectOptions? fastConnectOptions;
|
||||
|
||||
bool _subscriberPrimary = false;
|
||||
|
||||
@@ -100,12 +101,14 @@ class Engine extends Disposable with EventsEmittable<EngineEvent> {
|
||||
String token, {
|
||||
ConnectOptions? connectOptions,
|
||||
RoomOptions? roomOptions,
|
||||
FastConnectOptions? fastConnectOptions,
|
||||
}) async {
|
||||
this.url = url;
|
||||
this.token = token;
|
||||
// update new options (if exists)
|
||||
this.connectOptions = connectOptions ?? this.connectOptions;
|
||||
this.roomOptions = roomOptions ?? this.roomOptions;
|
||||
this.fastConnectOptions = fastConnectOptions;
|
||||
|
||||
_updateConnectionState(ConnectionState.connecting);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user