我正在使用我自己的peerjs
服务器,它运行时没有任何错误,并且连接正常,但是在 clinet 控制台上我收到错误Invalid key provided
var peer = new Peer({host: 'domain.com', port: 3000, path: '/peerjs',debug: 3});
这是日志
peer.js:1476 PeerJS: Socket open
peer.js:1476 PeerJS: ERROR Aborting!
peer.js:1476 PeerJS: ERROR Error: Invalid key provided
(index):22 Peer error Error: Invalid key provided
at Peer.emitError (peer.js:1070)
at Peer._abort (peer.js:1063)
at Peer._handleMessage (peer.js:883)
at Socket.<anonymous> (peer.js:809)
at Socket.emit (peer.js:1802)
at WebSocket._socket.onmessage (peer.js:1252)
peer.js:1476 PeerJS: Socket closed.