Engrain by ByteRush

WEB.16 2 concepts · 2 ready

Real-time communication

Choose and implement polling, SSE or WebSockets correctly.

  1. WEB.16.01Polling, long polling and Server-Sent EventsCoreMid-level11 min
  2. WEB.16.02WebSocketsCoreMid-level12 min

Interview questions in this module

  1. Compare polling, long polling, SSE and WebSockets.
  2. How do you handle a dropped WebSocket connection without losing messages?
  3. Why might SSE be a better choice than WebSockets for some features?
  4. How do you authenticate a WebSocket connection?