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