Close the socket/keepalive when going offline
// FREEBIE
This commit is contained in:
parent
c1b9f3235f
commit
9a63703340
1 changed files with 1 additions and 0 deletions
|
@ -188,6 +188,7 @@
|
|||
setTimeout(init, 60000);
|
||||
} else {
|
||||
console.log('offline');
|
||||
messageReceiver.close();
|
||||
window.addEventListener('online', init);
|
||||
}
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue