prettify
This commit is contained in:
@@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user