WebSocket Node is not working in NodeRed

814 views
Skip to first unread message

trial...@gmail.com

unread,
Jan 6, 2018, 5:25:54 AM1/6/18
to Node-RED
Hi 
   Tried to test a websocket connection using the websocket in and out nodes by referring this link.http://noderedguide.com/tag/websocket/ On triggering the message does not appear in the debug node payload.
    Please help in resolving this.

Thanks
FirstTrial

David Caparrós

unread,
Jan 6, 2018, 8:21:31 AM1/6/18
to Node-RED
Maybe will be easier if you posted your flow and explain what you expect to reach.

Regards

trial...@gmail.com

unread,
Jan 7, 2018, 4:03:01 AM1/7/18
to Node-RED
Wanted to send a test message to WebSocket test server wss://echo.websocket.org using trigger and websocket OUT node  Specified the type as connect and url as wss://echo.websocket.org .Configured another websocket IN node with type as Listen on and url as wss://echo.websocket.org and connected this to a debug node.Now when i invoked the trigger with a test message "Hello "it is not appearing in the debug window.

Thanks
FirstTrial

Mark Setrem

unread,
Jan 7, 2018, 4:38:29 AM1/7/18
to Node-RED
wss indicates secure websocket

have you followed one of the online guides to configure node-red for secure web sockets?

trial...@gmail.com

unread,
Jan 7, 2018, 7:40:25 AM1/7/18
to Node-RED
This is the link i followed http://noderedguide.com/tag/websocket/ .Please provide the necessary resources if this is the wrong one.

Julian Knight

unread,
Jan 7, 2018, 11:00:26 AM1/7/18
to Node-RED
You can use ws: instead of wss: according to the websocket.org docs.

However, on my test setup (on Windows 10), I get nothing back and no errors from either configuration.

I expect that this is because your local firewall is blocking the incoming connection.

trial...@gmail.com

unread,
Jan 7, 2018, 11:20:44 AM1/7/18
to Node-RED
I have Kaspersky internet security running in my windows 10 machine.Hope disabling this antivirus program and triggering the flow again will resolve the message display issue

Julian Knight

unread,
Jan 8, 2018, 2:08:37 AM1/8/18
to Node-RED
Probably not, I use the standard Windows 10 firewall and my router firewall. The former allows websockets inbound but my router probably does not.
Reply all
Reply to author
Forward
0 new messages