CleverProgrammers / nodejs-zoom-clone

847 stars 484 forks source link

Fails to connect to websockets #32

Open acagastya opened 3 years ago

acagastya commented 3 years ago

Hi, I tried running this on my server and created an nginx reverse proxy.

However, I am getting this error in the console.

Firefox can't establish a connection to the server at wss://video.example.com/socket.io/?EIO=3&transport=websocket&sid=CqM_U7hMStz1Qw3gAAAA.
Firefox can't establish a connection to the server at wss://video.example.com/peerjs/peerjs?key=peerjs&id=8c4cc4ef-5843-4407-98f6-ebc75ff699b9&token=qmq9ep06q9j.

The nginx config looks like this:

server {
  server_name video.example.com;

  location / {
    proxy_pass http://localhost:3030;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  }
}

Any idea how this can be fixed?

anujmittal2308 commented 2 years ago

https://stackoverflow.com/questions/72003682/cant-fix-expresspeerserver-is-not-a-function-in-server-js