some performance tuning
Just call Websockets only if really needed by shown tabs
This commit is contained in:
parent
e7c6823a6e
commit
bffbf8ee6e
1 changed files with 13 additions and 10 deletions
|
@ -291,10 +291,12 @@
|
|||
"order": [[ 0, "desc" ]]
|
||||
} );
|
||||
|
||||
if (showSysInfoTab) {
|
||||
var ws3 = new WebSocket("ws://" + window.location.hostname + ":5678/SYSINFO");
|
||||
ws3.onmessage = function (event) {
|
||||
getSysInfo(document, event);
|
||||
};
|
||||
}
|
||||
|
||||
var ws1 = new WebSocket("ws://" + window.location.hostname + ":5678/MMDVM");
|
||||
ws1.onmessage = function (event) {
|
||||
|
@ -323,12 +325,13 @@
|
|||
t_qso.row('.selected').remove().draw( false );
|
||||
} );
|
||||
|
||||
if (showDAPNETMessagesTab) {
|
||||
var ws2 = new WebSocket("ws://" + window.location.hostname + ":5678/DAPNET");
|
||||
ws2.onmessage = function (event) {
|
||||
getDapnetMessages(document, event);
|
||||
};
|
||||
t_dapnet.order( [ 0, 'desc' ] ).draw();
|
||||
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue