From 18b3dc1aeaeac7114f68ea0eab9ad59c7991b0ae Mon Sep 17 00:00:00 2001 From: WlodekM Date: Sun, 1 Dec 2024 11:57:17 +0200 Subject: fix?? i think???? --- lib/sd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/sd.js b/lib/sd.js index 824414d..c0b14df 100644 --- a/lib/sd.js +++ b/lib/sd.js @@ -32,7 +32,7 @@ export default class SoktDeer { this.wsEvents.on('new_post', ({ data: post }) => { this.messages.push(post) }) - this.ws.onopen = () => setInterval(this.ping, 5000) + this.ws.onopen = () => setInterval(()=>this.ping.call(this), 5000) } login(username, password) { return new Promise((resolve, reject) => { -- cgit 1.4.1-2-gfad0