最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Getting a PeerServer key - Stack Overflow

programmeradmin4浏览0评论

The PeerJS Documentation says

The 'key' we're passing in to the Peer constructor is a PeerServer cloud API key. You can use ours for now, but you should sign up for your own free key.

However, the given link just leads to this page, which doesn't have instructions on how to get a PeerServer key.

So, How do I get a PeerServer Key?

The PeerJS Documentation says

The 'key' we're passing in to the Peer constructor is a PeerServer cloud API key. You can use ours for now, but you should sign up for your own free key.

However, the given link just leads to this page, which doesn't have instructions on how to get a PeerServer key.

So, How do I get a PeerServer Key?

Share Improve this question edited Jan 6, 2022 at 3:18 Lumin asked Sep 1, 2019 at 4:59 LuminLumin 4831 gold badge11 silver badges24 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 7

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

const peer = new Peer()

This would have saved me three hours if the documentation was more clear. I thought I'd add that you can include an ID for your client and still use the cloud server. let peer = new Peer('clientID'). You only have to exclude the second argument (options) from Peer().

发布评论

评论列表(0)

  1. 暂无评论