Reactjs 如何实现peerjs以及如何使用它?

Reactjs 如何实现peerjs以及如何使用它?,reactjs,webrtc,Reactjs,Webrtc,我通过这个命令安装peerjs npm install peer -g peerjs --port 9000 --key peerjs --path /myapp 并使用以下命令运行: peerjs --port 9000 --key peerjs --path /myapp 按定义在locall中 主机:localhost,端口:9000,路径:myapp 我能很好地打视频电话 但是在服务器中,我有一个错误 https:localhost/myapp/peerjs/id?ts=....

我通过这个命令安装peerjs

npm install peer -g
peerjs --port 9000 --key peerjs --path /myapp
并使用以下命令运行:

peerjs --port 9000 --key peerjs --path /myapp
按定义在locall中

主机:localhost,端口:9000,路径:myapp

我能很好地打视频电话

但是在服务器中,我有一个错误

https:localhost/myapp/peerjs/id?ts=....