p2pt icon indicating copy to clipboard operation
p2pt copied to clipboard

Usage limits

Open fehmi opened this issue 5 years ago • 2 comments
trafficstars

I know this can be silly but I am curious about can we connect same chat room with 15.000 users?

fehmi avatar Sep 30 '20 10:09 fehmi

nope, no browser would support that many webrtc connections, the max (I believe) is around 256 and even that is a really bad idea, what you'd have to do is create a circular connection so that every client is connected to 2 other clients and they pass messages in a circle

image

and they pass the messages to each other,

also, note, you'd have to figure out a way to prevent man-in-the-middle attacks, because if I'm passing the message to someone else, I can also modify the message, you mostly will do this via public-private authentication, and its tough to implement (and also a nightmare)

Its a really tough thing to create, but if you can, that'd be really really cool

read about public-private key authentication, cause that'd be useful here

therealadityashankar avatar Sep 30 '20 10:09 therealadityashankar

The circular connection is a great idea. I will dig the subject a little. Thank you.

fehmi avatar Sep 30 '20 12:09 fehmi