The PeerJS documentation is old. You do not need a PeerServer key anymore (This change is permanent). Just omit the key option -
var peer = new Peer();
The PeerJS documentation is old. You do not need a PeerServer key anymore (This change is permanent). Just omit the key option -
var peer = new Peer();