mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-31 13:00:49 +00:00
Implement keep-alive, 45 sec interval. Correct ACK piggyback
This commit is contained in:
1 parent
881b282604
commit
06ab83dca6
4 files changed
+118
-89
No files matched your search
@@ -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();
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user