Broadcast on a Node-Red Websocket?

435 views
Skip to first unread message

JethroNull

unread,
May 9, 2015, 5:15:27 PM5/9/15
to node...@googlegroups.com
When I have two clients (browsers in this case) sending and receiving data on the same Node-Red websocket, only the one that triggers a flow gets updated.  I know that Node websockets can be made to respond only to specific clients or to broadcast to all (a chat server for instance).  Is there a mechanism in Node_red to configure a broadcast?

Nicholas O'Leary

unread,
May 9, 2015, 5:24:00 PM5/9/15
to Node-RED Mailing LIst
Hi,

the sidebar docs for the Websocket Out node has the information you need: If you want to broadcast a message that started at a WebSocket In node, you should delete the msg._session property within the flow

Nick

On 9 May 2015 at 22:15, JethroNull <jon.ri...@gmail.com> wrote:
When I have two clients (browsers in this case) sending and receiving data on the same Node-Red websocket, only the one that triggers a flow gets updated.  I know that Node websockets can be made to respond only to specific clients or to broadcast to all (a chat server for instance).  Is there a mechanism in Node_red to configure a broadcast?

--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jon Richings

unread,
May 9, 2015, 5:30:52 PM5/9/15
to node...@googlegroups.com
Nick, That works, thank you.  Sorry for not 'reading the flippin' docs'.  I keep forgetting they are there, I'm so focussed on the debug window.

--
http://nodered.org
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/IyzM_OPVTTY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages