WebRTC vs Websockets: If WebRTC can do Video, Audio, and Data, why do I need Websockets? [closed]

So I’m looking to build a chat app that will allow video, audio, and text. I spent some time researching into Websockets and WebRTC to decide which to use. Since there are plenty of video and audio apps with WebRTC, this sounds like a reasonable choice, but are there other things I should consider?
Feel free to share your thoughts.

Things like:

  • Due to being new WebRTC is available only on some browsers, while WebSockets seems to be in more browsers.

  • Scalability – Websockets uses a server for session and WebRTC seems to be p2p.

  • Multiplexing/multiple chatrooms – Used in Google+ Hangouts, and I’m still viewing demo apps on how to implement.

  • Server – Websockets needs RedisSessionStore or RabbitMQ to scale across multiple machines.

8 Answers
8

Leave a Comment