WebSocket APIs for Real-Time Communication
Build two-way, real-time connections with API Gateway WebSocket APIs. Learn the connect, disconnect, and message routes and how to push data back to clients.
Why WebSockets?
REST APIs are request/response — the server cannot push. For chat, live dashboards, or notifications you need a persistent two-way channel. API Gateway WebSocket APIs provide exactly that.
The Three Built-in Routes
A WebSocket API has special routes:
$connectwhen a client connects$disconnectwhen it leaves$defaultfor unmatched messages
All lessons in this course
- Caching and Throttling
- Request/Response Transformations
- Custom Domain Names & Edge Optimization
- WebSocket APIs for Real-Time Communication