Urgent.News

What's breaking now, across thousands of outlets.

More in Tech

WebSocket Engineering — Part 2

WebSocket connection :- Heartbeats, Zombie Connections, and the Connections That Never Said Goodbye In Part 1, I reached one uncomfortable conclusion: WebSocket disconnecting is normal. Reliable recovery is the feature. But that created another question. How do I even know that a WebSocket connection has died?

  • WebSocket disconnections are normal, recovery is key
  • Zombie connections occur when client vanishes without clean goodbye
  • Heartbeats serve two purposes: checking alive status and preventing idle consideration

More from Wednesday 2 September →