diff --git a/public/assets/js/glass-pages/dhcp-logs.js b/public/assets/js/glass-pages/dhcp-logs.js index 97e7f72..39f09de 100644 --- a/public/assets/js/glass-pages/dhcp-logs.js +++ b/public/assets/js/glass-pages/dhcp-logs.js @@ -4,6 +4,7 @@ function log_action (action){ socket.send(JSON.stringify({"event_unsubscribe": "dhcp_log_subscription"})); break; case "start": + killed_connection = 0; console.log('start readystate is ' + socket.readyState); socket.send(JSON.stringify({"event_subscription": "dhcp_log_subscription"})); break; diff --git a/public/assets/js/glass-websockets.js b/public/assets/js/glass-websockets.js index c96ab7f..a13bf79 100644 --- a/public/assets/js/glass-websockets.js +++ b/public/assets/js/glass-websockets.js @@ -6,7 +6,7 @@ function check_websocket_connection () { } function connect_websocket() { - var killed_connection = 0; + killed_connection = 0; delete socket; socket = new WebSocket("ws://" + window.location.hostname + ":8080"); diff --git a/public/templates/api_examples.html b/public/templates/api_examples.html index 3438c24..dba812c 100644 --- a/public/templates/api_examples.html +++ b/public/templates/api_examples.html @@ -4,7 +4,7 @@