socketio connecting to another server?

514 views
Skip to first unread message

Torsten Schmale

unread,
Nov 5, 2017, 10:33:25 AM11/5/17
to Node-RED
Hi,

I am looking for a node-red example or description showing how to establish a socketio connection from node-red to a server.

but this example makes use of node-red itself as socketio server

Thanx in advance

Julian Knight

unread,
Nov 5, 2017, 2:19:04 PM11/5/17
to Node-RED
Not sure that you will find that. In most cases, we want Node-RED to be the server.

It might help if you explained what you are trying to do with the connection?

Torsten Schmale

unread,
Nov 5, 2017, 6:39:06 PM11/5/17
to Node-RED

Am Sonntag, 5. November 2017 20:19:04 UTC+1 schrieb Julian Knight:
Not sure that you will find that. In most cases, we want Node-RED to be the server.

It might help if you explained what you are trying to do with the connection?

The server I want to connect provides a socket.io interface and provides update events. 
This interface is typically used by browser clients to refresh on event reception.

I want to connect to this interface now from node-red and trigger flows on certain topics.

Interesting that this hasn't been done yet by somebody. 

I guess I have to write my own socketio client then for node-red or can that be done with existing nodes?

Dave C-J

unread,
Nov 5, 2017, 6:47:06 PM11/5/17
to node...@googlegroups.com
There are several socketio client nodes on flows.nodered.org if you care to look

Torsten Schmale

unread,
Nov 6, 2017, 8:05:06 AM11/6/17
to Node-RED
yes, but all outdated and not working as it seems.
the last thing I tried was node-red-contrib-socketio-client which led to corruption of my working node-red-contrib-socketio installation...

from my point of view,  node-red-contrib-socketio is the only package that works (at least for the chat example AND if this bug fix here is applied https://github.com/wperw/node-red-contrib-socketio/issues/7 )

Dave C-J

unread,
Nov 6, 2017, 12:49:09 PM11/6/17
to node...@googlegroups.com
Ahah right... OK at least that project seems to be alive and the author responded fairly recently... (ok back in Oct...) so you could maybe confirm the patch works - or help raise a PR on it ?
Reply all
Reply to author
Forward
0 new messages