The PeerJS Documentation says
The 'key' we're passing in to the Peer constructor is a PeerServer cloud API key. You can use ours for now, but you should sign up for your own free key.
However, the given link just leads to this page, which doesn't have instructions on how to get a PeerServer key.
So, How do I get a PeerServer Key?
The PeerJS Documentation says
The 'key' we're passing in to the Peer constructor is a PeerServer cloud API key. You can use ours for now, but you should sign up for your own free key.
However, the given link just leads to this page, which doesn't have instructions on how to get a PeerServer key.
So, How do I get a PeerServer Key?
Share Improve this question edited Jan 6, 2022 at 3:18 Lumin asked Sep 1, 2019 at 4:59 LuminLumin 4831 gold badge11 silver badges24 bronze badges2 Answers
Reset to default 7The PeerJS documentation is old. You do not need a PeerServer key anymore (This change is permanent). Just omit the key option -
const peer = new Peer()
This would have saved me three hours if the documentation was more clear. I thought I'd add that you can include an ID for your client and still use the cloud server.
let peer = new Peer('clientID')
. You only have to exclude the second argument (options) from Peer().