Echo Chat Application
Explore how to create a simple echo chat application using AWS API Gateway's WebSocket API. Learn about the key WebSocket event routes—$connect, $disconnect, and $default—and how to integrate them with AWS Lambda to handle real-time messaging in a serverless environment.
We'll cover the following...
WebSocket on AWS
The AWS API Gateway enables simple implementation of Websocket API. When configuring a WebSocket API, we don’t have to worry about the server-side protocol. Instead, we can create a new entity when we’re ready to use it.
A WebSocket API configuration requires integrations for specific events or routes in the incoming request.
On Connect: When a new connection is established.
On Disconnect: When an existing connection is terminated.
Additional custom action (optional): We can specify custom actions ...