Socketio-config missing, connect to websocket with rooms

Merry Christmas everyone!

I’m having trouble with the module “node-red-contrib-socketio”.
I can’t seem to find the “socketio-config” module? What could I be missing?
I tried installing from within node-red and installing via NPM.

node-red v.1.0.6 running on raspberry pi.


Thanks

Have you tried dropping one of them nodes onto the editor and opening it? That's normally where you access a configuration node (from inside a node that uses a config node)

Hi Steve-Mcl.
Basically im trying to connect to a websocket and subscribe to different rooms.
I have the following working solution in node.js, and i'm trying to make the same work in node-red.

var socket = require('socket.io-client')('https://[hidden].com');
socket.on('connect', function () { console.log(`connected ${socket.id}`) });
socket.emit("join", { Room: "InstallID[hidden]>RundownID1" });

socket.on('updateCellinRundown', function (data) { 
  console.log('updateCellinRundown:')
  console.log(data)
});

socket.on('updateOnAirTimer', function (data) { 
  console.log('updateOnAirTimer:')
  console.log(data)
});
socket.on('updateRowsinRundown', function(data) {
  console.log('updateRowsinRundown:');
  console.log(data);
})

socket.emit("join", { Room: "InstallID[hidden]" });
socket.on('updateRundowns', function(data) {
  console.log('updateRundowns:');
  console.log(data);
})

But the "node-red-contrib-socketio" module does not give me the same connection possibilities as the node script. I'm pretty new to this stuff. Any help appreciated, maybe i am to use another module altogether?

Thanks
Christian

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.