diff options
-rw-r--r-- | lib/sd.js | 2 |
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) => { |