admin管理员组文章数量:1390889
I am trying out PeerJS and it works great.
Just looking at the demo's the Peer ID is auto created for you.
Is there a way to define / set your own Peer Id?
I am trying out PeerJS and it works great.
Just looking at the demo's the Peer ID is auto created for you.
Is there a way to define / set your own Peer Id?
Share Improve this question asked Jan 19, 2014 at 12:29 Satch3000Satch3000 49.5k90 gold badges225 silver badges349 bronze badges1 Answer
Reset to default 6Provide a peer id when you create the peer object:
var peer = new Peer('pick-an-id', {key: 'myapikey'});
// You can pick your own id or omit the id if you want to get a random one from the server.
This is right off the page you linked to under Create a peer.
本文标签: javascriptPeerJS Set your own PeerIDStack Overflow
版权声明:本文标题:javascript - PeerJS Set your own PeerID - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744722872a2621799.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论