# Socketio-config missing, connect to websocket with rooms

**URL:** <https://discourse.nodered.org/t/socketio-config-missing-connect-to-websocket-with-rooms/38139>\
**Category:** General\
**Created:** [28 December 2020 15:34 UTC](https://discourse.nodered.org/t/socketio-config-missing-connect-to-websocket-with-rooms/38139 "2020-12-28T15:34:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![christianskov](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/christianskov/32/34360_2.png) [@christianskov](https://discourse.nodered.org/u/christianskov)\
**Post date:** [28 December 2020 15:34 UTC](https://discourse.nodered.org/t/socketio-config-missing-connect-to-websocket-with-rooms/38139/1 "2020-12-28T15:34:59Z")

</div>

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.

 ![Skærmbillede 2020-12-28 kl. 16.35.43](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/2/82fa69d0789d6c15ac9d13f69269cfac74d7c45d.png)  
Thanks

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [28 December 2020 16:17 UTC](https://discourse.nodered.org/t/socketio-config-missing-connect-to-websocket-with-rooms/38139/2 "2020-12-28T16:17:05Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![christianskov](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/christianskov/32/34360_2.png) [@christianskov](https://discourse.nodered.org/u/christianskov)\
**Post date:** [28 December 2020 16:36 UTC](https://discourse.nodered.org/t/socketio-config-missing-connect-to-websocket-with-rooms/38139/3 "2020-12-28T16:36:54Z")

</div>

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.

```auto
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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [26 February 2021 16:37 UTC](https://discourse.nodered.org/t/socketio-config-missing-connect-to-websocket-with-rooms/38139/4 "2021-02-26T16:37:06Z")

</div>

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