GitHunt

WebSocket API in Amazon API Gateway

CDK example of:

  • WebSocket API using Amazon API Gateway WebSocketApi Construct
  • Using $connect and $disconnect routes to manage connected users
  • Using AWS.ApiGatewayManagementApi to send message from backend to connected clients

Final architecture:

Extra resources:

Languages

TypeScript93.6%JavaScript6.4%

Contributors

Created February 4, 2023
Updated January 8, 2026
oieduardorabelo/cdk-api-gateway-websocket | GitHunt