WebSocket
A full-duplex communication channel between browser and server. Once established, both sides can send messages at any time — no need to re-initiate requests each time.
Module Contents
- Overview — What is WebSocket, what's the difference from HTTP
- Basic Usage — Connect, send, receive, close
- Advanced Usage — Reconnection, heartbeat, binary data, subprotocols
- Practice: Real-time Chat — Build a multi-user real-time chat app from scratch