mirror of
https://github.com/AlexandreRouma/wiscast.git
synced 2026-04-18 07:42:44 +00:00
bugfix
This commit is contained in:
@@ -74,14 +74,6 @@ class WisCastUserAPIClient {
|
||||
dispID: dispID,
|
||||
otp: OTP
|
||||
}))
|
||||
|
||||
// Send a heart-beat message every 30 seconds
|
||||
setInterval(async () => {
|
||||
console.log("Sending a heart beat");
|
||||
await this.#sock.send(JSON.stringify({
|
||||
type: 'hb',
|
||||
}))
|
||||
}, 30000);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -128,7 +120,14 @@ class WisCastUserAPIClient {
|
||||
await this.#sock.send(JSON.stringify({
|
||||
type: 'init',
|
||||
clientType: 'user'
|
||||
}))
|
||||
}));
|
||||
|
||||
// Send a heart-beat message every 30 seconds
|
||||
setInterval(async () => {
|
||||
await this.#sock.send(JSON.stringify({
|
||||
type: 'hb',
|
||||
}))
|
||||
}, 30000);
|
||||
}
|
||||
|
||||
async #messageHandler(event) {
|
||||
|
||||
Reference in New Issue
Block a user