Fix log watch streaming issue where if you page away and page back - messages aren't being drawn until you refresh
This commit is contained in:
parent
ff5c9fe224
commit
11eaebedd1
|
@ -4,6 +4,7 @@ function log_action (action){
|
||||||
socket.send(JSON.stringify({"event_unsubscribe": "dhcp_log_subscription"}));
|
socket.send(JSON.stringify({"event_unsubscribe": "dhcp_log_subscription"}));
|
||||||
break;
|
break;
|
||||||
case "start":
|
case "start":
|
||||||
|
killed_connection = 0;
|
||||||
console.log('start readystate is ' + socket.readyState);
|
console.log('start readystate is ' + socket.readyState);
|
||||||
socket.send(JSON.stringify({"event_subscription": "dhcp_log_subscription"}));
|
socket.send(JSON.stringify({"event_subscription": "dhcp_log_subscription"}));
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -6,7 +6,7 @@ function check_websocket_connection () {
|
||||||
}
|
}
|
||||||
|
|
||||||
function connect_websocket() {
|
function connect_websocket() {
|
||||||
var killed_connection = 0;
|
killed_connection = 0;
|
||||||
|
|
||||||
delete socket;
|
delete socket;
|
||||||
socket = new WebSocket("ws://" + window.location.hostname + ":8080");
|
socket = new WebSocket("ws://" + window.location.hostname + ":8080");
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<h2>
|
<h2>
|
||||||
GET: Active Leases Data
|
GET: Active Leases Data <small>(Full Lease Data - this can be heavy) Drawing the JSON response in the browser screen takes longer than the response itself</small>
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="body">
|
<div class="body">
|
||||||
|
|
Loading…
Reference in New Issue