Closed JGames101 closed 6 years ago
use a custom peerjs-server for this and host it to your vps
@2n2n Can u please give a example or documentation how to do that? I have the exact same problem.
I'm using this: repo
Can I use my own peerjs-server?
I will be adding SSL to the open server this week
Any updates on this?
The official PeerServer accepts WSS. Please read the PeerServer section on the website. You must NOT add the key option.
If it says an error of not able to use WSS, please use latest version from master branch.
https://raw.githubusercontent.com/peers/peerjs/master/dist/peer.min.js
Update your peerjs version and it will work. (Even with key option, although it's useless)
When attempting to use PeerJS from a site that is served over HTTP, this error appears in the console:
Blocked loading mixed active content “http://0.peerjs.com:9000/lwjd5qra8257b9/id?ts=15151778159410.6040248252280473”
Because the site for peerJS is served over HTTP, it is considered dangerous for the script to be loaded from there.