From 67667e073ee4fd89ed18400f4cab586f5fb8c157 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 12 Nov 2024 08:51:45 +0100 Subject: [PATCH] lib/client: bind handleOnline to this It's used as a callback to removeEventListener(). --- lib/client.js | 2 ++ 1 file changed, 2 insertions(+) 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();