p2pt
p2pt copied to clipboard
Usage limits
I know this can be silly but I am curious about can we connect same chat room with 15.000 users?
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

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
The circular connection is a great idea. I will dig the subject a little. Thank you.