spacebarchat / server

Spacebar server - A reimplementation of the Discord.com backend, built with Typescript and love
https://spacebar.chat
GNU Affero General Public License v3.0
1.42k stars 243 forks source link

[API] Peer to peer #85

Open SamuelScheit opened 3 years ago

SamuelScheit commented 3 years ago

if the server doesn't have enough processing powers to handle a great amount of users in voice chat possibly streaming, the server should be configurable to tell the client to use peer to peer technology instead of going over the server.

The only big problem is that this would leak the users ip address and is using a lot of bandwidth on the users side in a voice/video chat with lots of members.

aryan0078 commented 3 years ago

Web can do it with web rtc.

aryan0078 commented 3 years ago

Or by socket

SamuelScheit commented 3 years ago

yes but the the problem is that it leaks your ip address and it isn't scalable in with many users