Implement keep-alive, 45 sec interval. Correct ACK piggyback

This commit is contained in:
cpq committed 2022-09-08 08:50:42 +01:00
1 parent 881b282604
commit 06ab83dca6
4 files changed
+118 -89

No files matched your search

+5 -1
View File
@@ -341,7 +341,11 @@ const App = function(props) {
const login = function(u) {
document.cookie = `access_token=${u.token}; Secure, HttpOnly; SameSite=Lax; path=/; max-age=3600`;
setUser(u.user);
watch();
if (location.search.substring(1) == 'nows') {
// If query string is ?nows, then do not connect to websocket. For debug.
} else {
watch(); // Connect to websocket, receive constant graph updates
}
return getconfig();
};