Send new value when element changes
This commit is contained in:
parent
2ee084be62
commit
fa13b0948e
|
@ -63,9 +63,12 @@ function msgListen (m) {
|
|||
id: m.id,
|
||||
k: m.k,
|
||||
};
|
||||
if (m.k === "changed") {
|
||||
em.v = node.value;
|
||||
}
|
||||
const ems = JSON.stringify (em);
|
||||
socket.send (ems);
|
||||
console.log ("Send event", em);
|
||||
console.log ("Event", em);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue