Search⌘ K

Echo Chat Application

Understand core concepts of WebSocket using an echo chat application.

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 in the API.

  • Default action (optional): Invoked when the action in the incoming message isn’t ...