diff --git a/lib/client.js b/lib/client.js index 0f99e36..4c8bba9 100644 --- a/lib/client.js +++ b/lib/client.js @@ -148,6 +148,8 @@ export default class Client extends EventTarget { constructor(params) { super(); + this.handleOneline = this.handleOnline.bind(this); + this.params = { ...this.params, ...params }; this.reconnect();