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

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.

upstream vsoTS_http_nodes{
    server vsots:8084;
upstream vsoTSS_socketio_nodes{
    server vsots:8084;

server {
    listen 80;
    server_name _;

    location /vsoTS {
        proxy_pass http://vsoTS_http_nodes;

    location /vsoTS/ {
        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/;

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

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