summary refs log tree commit diff
diff options
context:
space:
mode:
authorWlodekM <[email protected]>2024-12-01 11:56:06 +0200
committerWlodekM <[email protected]>2024-12-01 11:56:06 +0200
commit010e3b7505571a97449e542c9dc32174cf440f8f (patch)
tree78e7800890daf6dd2eca56475b7d5acd84518f94
parentd56e324b0d5f249c461428fdd976cc074b098be1 (diff)
wait am i dumb
-rw-r--r--lib/sd.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sd.js b/lib/sd.js
index 25b2cb9..824414d 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(ping, 5000)
+        this.ws.onopen = () => setInterval(this.ping, 5000)
     }
     login(username, password) {
         return new Promise((resolve, reject) => {