Remove logs
This commit is contained in:
parent
8d83a94d61
commit
7a307e3de8
|
@ -29,13 +29,11 @@ export const createWebsocket = (path, heartbeat = true) => {
|
||||||
let interval
|
let interval
|
||||||
if (heartbeat) {
|
if (heartbeat) {
|
||||||
interval = setInterval(() => {
|
interval = setInterval(() => {
|
||||||
console.log("Sending heartbeat")
|
|
||||||
socket.emit(SocketEvents.Heartbeat)
|
socket.emit(SocketEvents.Heartbeat)
|
||||||
}, SocketSessionTTL * 500)
|
}, SocketSessionTTL * 500)
|
||||||
}
|
}
|
||||||
|
|
||||||
socket.on("disconnect", () => {
|
socket.on("disconnect", () => {
|
||||||
console.log("clear interval")
|
|
||||||
clearInterval(interval)
|
clearInterval(interval)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue