lib/client: bind handleOnline to this

It's used as a callback to removeEventListener().
This commit is contained in:
Simon Ser 2024-11-12 08:51:45 +01:00
parent 460af509e9
commit 67667e073e

View file

@ -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();