# SocketIO connection and receiving the data from Nginx server (running in docker container) in Node-RED

**URL:** <https://discourse.nodered.org/t/socketio-connection-and-receiving-the-data-from-nginx-server-running-in-docker-container-in-node-red/49355>\
**Category:** General\
**Created:** [4 August 2021 21:29 UTC](https://discourse.nodered.org/t/socketio-connection-and-receiving-the-data-from-nginx-server-running-in-docker-container-in-node-red/49355 "2021-08-04T21:29:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![razaaliabid87](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@razaaliabid87](https://discourse.nodered.org/u/razaaliabid87)\
**Post date:** [4 August 2021 21:29 UTC](https://discourse.nodered.org/t/socketio-connection-and-receiving-the-data-from-nginx-server-running-in-docker-container-in-node-red/49355/1 "2021-08-04T21:29:07Z")

</div>

I am using Nginx on top of the Flask-SocketIO app on the server-side. I want to receive data from that server to my nodes in Node-RED using sockets. I am new at Node-RED so, I want suggestions on what should I use for this? When would the data be received from the server, I want to pass it to other nodes as well.  
here is my Nginx (which is running in a docker container) Configuration.

```auto
upstream vsoTS_http_nodes{
    server vsots:8084;
}
upstream vsoTSS_socketio_nodes{
    ip_hash;
    server vsots:8084;
}

server {
    
    listen 80;
    server_name _;

    location /vsoTS {
        proxy_pass http://vsoTS_http_nodes;
    }

    location /vsoTS/socket.io {
        proxy_http_version 1.1;
        proxy_buffering off;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
        proxy_pass http://vsoTSS_socketio_nodes/socket.io;
    }
}

```

In the above code, `vsoTS` is actually the name of another docker container that contains the Flask-SocketIO app and exposing the port `8084`.

---

<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:** [3 October 2021 21:29 UTC](https://discourse.nodered.org/t/socketio-connection-and-receiving-the-data-from-nginx-server-running-in-docker-container-in-node-red/49355/2 "2021-10-03T21:29:13Z")

</div>

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