Update socket status more eagerly
This commit is contained in:
parent
3cf6ea882b
commit
f937eba94e
3 changed files with 20 additions and 3 deletions
|
@ -27,6 +27,8 @@ export function initializeNetworkObserver(
|
|||
});
|
||||
};
|
||||
|
||||
window.Whisper.events.on('socketStatusChange', refresh);
|
||||
|
||||
window.addEventListener('online', refresh);
|
||||
window.addEventListener('offline', refresh);
|
||||
window.setInterval(refresh, REFRESH_INTERVAL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue