Deployig own peerjs server
Ravindu007 opened this issue · 2 comments
Please, check for existing issues to avoid duplicates.
- No similar issues found.
What happened?
I have deployed a peerjs server (with the help of your documetatio) and I have verified that it is working (usig postman)
The problem is whe trying to conect to it it shows a wrog URL
Error I am getting:
RoomContext.tsx:198 WebSocket connection to 'ws://dev.learnerr.rizerr.com:9000/peers/peerjs?key=peerjs&id=65b9f56dc5de0c20ff6716f6&token=m5c78415z0q&version=1.5.2' failed:
below is my client code:
const peer = new Peer(currentPeerId,{ host:"dev.learnerr.rizerr.com", port:9000, path:"/peers" });
server code
PeerServer({ port: 9000, path: "/peers" });
I have noticed thart additioal "peerjs" part has appened to the URL. please help me o this issue.
How can we reproduce the issue?
- Try to deploy your own peer server and try to connect to it.
What do you expected to happen?
connect without any issues
Environment setup
- OS: Windows 11
- Browser: Chrome
Is this a regression?
No response
Anything else?
Note: I am using Nginx for server configuration
No response
Hey i am also stuck with the same issue 😞
@narasimha-1511
It was a problem with the SSL certificate of the host, this is happen due to sending a WSS request, so try to host the peer server where you have configured https.
And also add your own turn server