Skip to content

Commit 2d21f42

Browse files
authored
[fix] Increased "timeoutInterval" for ReconnectingWebSocket #772
Closes #772
1 parent cc23a5c commit 2d21f42

File tree

1 file changed

+4
-0
lines changed
  • openwisp_controller/connection/static/connection/js

1 file changed

+4
-0
lines changed

openwisp_controller/connection/static/connection/js/commands.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ const commandWebSocket = new ReconnectingWebSocket(
1010
null, {
1111
debug: false,
1212
automaticOpen: false,
13+
// The library re-connects if it fails to establish a connection in "timeoutInterval".
14+
// On slow internet connections, the default value of "timeoutInterval" will
15+
// keep terminating and re-establishing the connection.
16+
timeoutInterval: 7000,
1317
}
1418
);
1519

0 commit comments

Comments
 (0)