Websocket interview questions
Practice 3 questions on websocket. Each runs in a real in-browser editor with Jest tests and a worked, diagram-backed solution.
3 questions
- MEDIUM
Reconnecting WebSocket
PREMIUMWrap a WebSocket so it auto-reconnects with exponential backoff, queues sends while down, and re-emits its events.
35 minJavaScript - MEDIUM
Socket Channel Multiplexing
Run many logical channels over one WebSocket — route each incoming frame to the right channel and clean up on leave.
35 minJavaScript - MEDIUM
WebSocket Session Resume
PREMIUMResume a dropped connection without gaps — track sequence numbers, request a replay from the last seen, and de-duplicate redelivered messages.
40 minJavaScript