Menu

How I built a random video chat with WebRTC, Socket.IO and Redis (and the bugs that taught me the most)
📰

How I built a random video chat with WebRTC, Socket.IO and Redis (and the bugs that taught me the most)

DEV Community: redis·Fermin Arriaza Vazquez·3 days ago
#mwZ8Y6kL
#devtoredis#devto#dev#socket#turn
Long article (1949 words) — no AI summary yet.
Reading 0:00
15s threshold

I got my first computer, a ZX Spectrum 128K, when I was 10. Decades later I'm still doing the same thing: taking something apart to see how it works. This year that something was random video chat , the Omegle-style "press Start, talk to a stranger, press Next" experience.

The result is Chaface , a free random video chat (18+) that runs in the browser and on Android. This post is about the architecture and, more usefully, the bugs. Most WebRTC tutorials stop at "two tabs on localhost can see each other". Real users on 4G, on old phones and pressing Next every two seconds are a different story.

The stack

Frontend: React + TypeScript (Vite), the browser WebRTC API, Socket.IO client.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.