This commit is contained in:
Nour Alharithi
2023-12-12 09:56:30 -08:00
parent 59b88f753d
commit f00be8945e

View File

@@ -260,9 +260,11 @@ async function main() {
// Set interval to send heartbeat every 5 seconds // Set interval to send heartbeat every 5 seconds
setInterval(() => { setInterval(() => {
ws.send(JSON.stringify({ ws.send(
channel: 'heartbeat' JSON.stringify({
})); channel: 'heartbeat',
})
);
}, 5000); }, 5000);
}); });