peers / peerjs

Simple peer-to-peer with WebRTC.
https://peerjs.com
MIT License
12.48k stars 1.43k forks source link

Dealing with More than 50 Connections #363

Closed imerkle closed 5 years ago

imerkle commented 8 years ago

I want to implement a chat site but the limit is only 50 connection per API. What if there are thousands of users chatting INDIVIDUALLY with each other.

I have a workaround solution. I just want a review

User Alice - API KEY 1 (Its full) User Bob - API KEY 2 User Carol - API KEY 3 (Its full)

Now User Alice cannot connect User Bob . So User Alice has to create a peer in API KEY 2.

Also User Alice cannot connect User Carol and API KEY 3 is full , so Alice creates a peer in API KEY 4 and tells Carol to create a peer in API KEY 4 and they connect.

Is there an easy way around this solution ?

ericfernance commented 8 years ago

You can setup a dedicate peerjs server. https://github.com/peers/peerjs-server. I've used that successfully.

Eric.

dannysofftie commented 7 years ago

@digitalgarage how did you achieve that? I am working on a similar project but after sending mediastream to remote peer, I cannot get that data

afrokick commented 5 years ago

It's just server side logic to control how many users can connect to server using specific key