B4J Question how to pass WebScoket data between Node-Red and b4j_ws.js ?

jinyistudio

Well-Known Member
Licensed User
Hi
I have a b4j app working with node-red throught websocket. I want to run a command like ws.eval(...), ws.runfunction(..).from node-red to web client side(b4j_ws.js). which json format do i need to building it in the node-red node and then send to web client ? o_Oo_Oo_O
 
Last edited:

jinyistudio

Well-Known Member
Licensed User
node-red function node:
var msg1={payload:{
    etype:'eval',
    prop:'graphic.setValue(\'led\',' + msg.payload+');',
    value:[]
    }}
return msg1;
 
Upvote 0
Top