|
|
@@ -28,6 +28,7 @@ wss.on('connection', function (ws, req) { |
|
|
|
const timer = setInterval(() => { |
|
|
|
sendMsg(ws, 'kiln-info'); // 窑炉信息 |
|
|
|
sendMsg(ws, 'energy-cost'); // 运行状态 |
|
|
|
sendMsg(ws, 'run-state'); // 运行状态 |
|
|
|
sendMsg(ws, 'realtime'); |
|
|
|
sendMsg(ws, 'his-trend'); |
|
|
|
// sendMsg(ws, 'gas'); |
|
|
@@ -36,7 +37,7 @@ wss.on('connection', function (ws, req) { |
|
|
|
}, frequency * 1000); |
|
|
|
|
|
|
|
const timer1 = setInterval(() => { |
|
|
|
sendMsg(ws, 'run-state'); // 运行状态 |
|
|
|
// sendMsg(ws, 'run-state'); // 运行状态 |
|
|
|
}, frequency1 * 1000); |
|
|
|
|
|
|
|
ws.on('close', function () { |
|
|
|