WebSockets
HTTP asks. WebSockets scream continuously.
▶ the lesson · ~35s · narrated · tap for sound
the intro
WebSockets open a persistent two-way connection between browser and server. Instead of asking for updates, both sides push messages the moment they happen — that is how chat, live scores, and collaborative apps feel instant.
fun fact ✦
Before WebSockets (2011), apps faked real-time with endless polling or “long polling” hacks.
the docs
quick hits about WebSockets
15-second answers · interviews, tips, trivia & hidden gems
🎤 interview
HTTP vs WebSocket?
📚 tutorial
How do chat rooms work?
🔧 useful
One server is easy. Two is the interview question.
💎 deep
Why do connections die silently?
🧠 trivia
How did apps fake real-time before 2011?
💎 deep
Raw ws or Socket.IO?