webui(ws): try to contain wsSend to the queue callback

- 'log' payload nesting reduced, just one element (for now)
- move terminal and ws logger into ws helper classes
- 'manual' callback mode to simply allow for ws send window
  by using slightly more complicated loop w/ queue checks, though
This commit is contained in:
Maxim Prokhorov
2025-04-02 23:03:30 +03:00
parent be46c3fd70
commit db84cdda5e
7 changed files with 474 additions and 203 deletions

View File

@@ -84,13 +84,8 @@ function listeners() {
"log": (_, value) => {
send("{}");
const messages = value["msg"];
if (messages === undefined) {
return;
}
for (let msg of messages) {
CmdOutput.push(msg);
for (const message of value) {
CmdOutput.push(message);
}
CmdOutput.follow();