我的 PeerJS 服务器有问题。我从这里使用了“部署到 Heroku”按钮:https://github.com/peers/peerjs-server https://github.com/peers/peerjs-server
我不知道如何连接已部署的云。
我找不到有关 PeerJS Server 的明确文档。
我不知道我的应用程序的主机、端口和路径是什么。
var peer = new Peer('someid', {host: 'localhost', port: 9000, path: '/myapp'});
请指教。
这对我来说是这样的:
var peer = new Peer('someid', {
secure: true,
host: 'your-app-name.herokuapp.com',
port: 443,
});
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)