misc
This commit is contained in:
@@ -45,7 +45,6 @@ export class WebsocketClient extends EventEmitter {
|
|||||||
super();
|
super();
|
||||||
|
|
||||||
this.logger = logger || DefaultLogger;
|
this.logger = logger || DefaultLogger;
|
||||||
|
|
||||||
this.readyState = READY_STATE_INITIAL;
|
this.readyState = READY_STATE_INITIAL;
|
||||||
this.pingInterval = undefined;
|
this.pingInterval = undefined;
|
||||||
this.pongTimeout = undefined;
|
this.pongTimeout = undefined;
|
||||||
@@ -60,7 +59,6 @@ export class WebsocketClient extends EventEmitter {
|
|||||||
|
|
||||||
this.client = new InverseClient(undefined, undefined, this.options.livenet, this.options.restOptions, this.options.requestOptions);
|
this.client = new InverseClient(undefined, undefined, this.options.livenet, this.options.restOptions, this.options.requestOptions);
|
||||||
this._subscriptions = new Set();
|
this._subscriptions = new Set();
|
||||||
|
|
||||||
this._connect();
|
this._connect();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -101,7 +99,6 @@ export class WebsocketClient extends EventEmitter {
|
|||||||
|
|
||||||
const authParams = await this._authenticate();
|
const authParams = await this._authenticate();
|
||||||
const url = this._getWsUrl() + authParams;
|
const url = this._getWsUrl() + authParams;
|
||||||
|
|
||||||
const ws = new WebSocket(url);
|
const ws = new WebSocket(url);
|
||||||
|
|
||||||
ws.onopen = this._wsOpenHandler.bind(this);
|
ws.onopen = this._wsOpenHandler.bind(this);
|
||||||
|
|||||||
Reference in New Issue
Block a user