aws-lambda-stream
aws-lambda-stream copied to clipboard
feat: WebSocket support
Adds WebSocket support via API Gateway Management API
- Add
ApiGatewayClientConnectorwrappingPostToConnectionCommandwith retry and timeout support - Add
publishToConnectionssink with silent 410 (stale connection) handling - Add
broadcastToWebSocketflavor: filter by event type → format message → fan out to connections - Add
@aws-sdk/client-apigatewaymanagementapidev 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 (
broadcastToWebSocketalready supported)