title: Client unable to hit socket.io server
body: <p>Project is hosted on Digital Ocean.</p>
  <p>On the client side, its throwing a 404 error</p>
  <pre><code>GET http://134.209.147.204/socket.io/?EIO=3&amp;transport=polling&amp;t=NKKWF-X //404
  </code></pre>
  <p>Here is the nginx config file</p>
  <pre><code>server {
          listen 80;
          root /var/www/html;
          location / {
                  proxy_pass http://127.0.0.1:5000; (where the frontend is running)
                  proxy_http_version 1.1;
                  proxy_set_header Upgrade $http_upgrade;
                  proxy_set_header Connection &quot;upgrade&quot;;
          }
          location /socket/ {
                  proxy_pass http://localhost:3001; (where the sockets.io server is running)
  
          }
  
  }
  </code></pre>
  <p>Frontend</p>
  <p><code>socket = io('/socket/')</code></p>
  <p>Both the frontend and backend runs without any errors and can be accessed from the browser.</p>