aws-lambda-stream icon indicating copy to clipboard operation
aws-lambda-stream copied to clipboard

feat: WebSocket support

Open gmoz22 opened this issue 7 months ago • 0 comments

Adds WebSocket support via API Gateway Management API

  • Add ApiGatewayClientConnector wrapping PostToConnectionCommand with retry and timeout support
  • Add publishToConnections sink with silent 410 (stale connection) handling
  • Add broadcastToWebSocket flavor: filter by event type → format message → fan out to connections
  • Add @aws-sdk/client-apigatewaymanagementapi dev dependency
  • Unit tests
  • Update README

Templates for using this feature - https://github.com/jgilbert01/templates/pull/7

  • template-websocket-service
  • template-websocket-mfe
  • template-websocket-demo

Roadmap:

  • Authentication/Authorization
  • Full pipeline model for other WS connection lifecycle handlers (broadcastToWebSocket already supported)

gmoz22 avatar Apr 25 '26 08:04 gmoz22