title: WebRTC through host with nodeJS express and socketio
body: <p>I created a web app to let people communicate. I want to implement screen sharing and audio calls.</p>
  <p>My current app is programmed in NodeJs and uses express and socket.io to serve the client connection and open a socket connection. I want to stream video and audio. My problem with WebRTC is that all those who connect to a call are vulnerable to a DDoS attack since it is p2p. I found an article from Discord explaining how they managed to let the entire traffic go through their servers: <a href="https://blog.discord.com/how-discord-handles-two-and-half-million-concurrent-voice-users-using-webrtc-ce01c3187429" rel="nofollow noreferrer">https://blog.discord.com/how-discord-handles-two-and-half-million-concurrent-voice-users-using-webrtc-ce01c3187429</a>, that's exactly what I want to achieve.</p>
  <p>Could I possibly use socket.io-stream <a href="https://www.npmjs.com/package/socket.io-stream" rel="nofollow noreferrer">https://www.npmjs.com/package/socket.io-stream</a> ? I didn't yet figure out how, and it seems like all socket.io streaming libraries are made for file upload/download, not for actual video/audio streaming.</p>
  <p>If that doesn't work, a library such as what Discord managed to make would be the perfect solution, since all traffic is proxied, and not p2p. Though I couldn't find any of those libraries, maybe I'm just looking for the wrong thing?
  Best regards</p>