mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-29 16:29:19 +02:00
little change, dont even pull this
This commit is contained in:
@@ -23,7 +23,7 @@ xrd.on('connection', (ws, request) => {
|
||||
}
|
||||
|
||||
currentUsers++;
|
||||
send_to_xrd(`o${currentUsers},${initialData.users}\n`);
|
||||
send_xrd_online(initialData.users);
|
||||
ws.send(`T${initialData.freq * 1000}\n`);
|
||||
ws.send(`G${initialData.eq}${initialData.ims}\n`);
|
||||
ws.send(`Z${initialData.ant}\n`);
|
||||
@@ -35,10 +35,10 @@ xrd.on('connection', (ws, request) => {
|
||||
ws.on('message', (message) => storage.ctl_output.write(`${message}\n`));
|
||||
ws.on('close', (code, reason) => {
|
||||
currentUsers--;
|
||||
send_to_xrd(`o${currentUsers},${initialData.users}\n`);
|
||||
send_xrd_online(initialData.users);
|
||||
});
|
||||
});
|
||||
|
||||
storage.websocket_delegation.set("/xrd", xrd);
|
||||
|
||||
module.exports = { send_to_xrd, send_xrd_online};
|
||||
module.exports = { send_to_xrd, send_xrd_online };
|
||||
Reference in New Issue
Block a user