PrepCity

WebSockets

Open the lab

By the last page, this is the design you will have built.

Lesson · 7 pages · about 4 min

WebSockets

An HTTP request upgrades into a long-lived, two-way channel where either side can send frames at any time.

Words you’ll learn

  • WebSocket
  • Server
  • Polling
  • Heartbeat
  • Stream
  • Request
  • Handshake

Page by page