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
setInterval(() => {
ws.send(JSON.stringify({
channel: 'heartbeat'
}));
ws.send(
JSON.stringify({
channel: 'heartbeat',
})
);
}, 5000);
});