Server push in custom node


hello, I am developing a node that when listening to a this.on("input", () => { }) input should read some local values and publish them on the client side in the node's edit view (the homologous html of my node). how can I do it?



In general this is not a pattern we encourage as the editor is not meant to be a dashboard. You can send data as the node.status but again this is meant to be state information not really operational data. The normal pattern is for the oneditprepare to call back to the runtime to fetch any data required by the editor.

1 Like