Skip to content

feat: WebSocket support#441

Draft
gmoz22 wants to merge 4 commits intojgilbert01:masterfrom
gmoz22:websocket
Draft

feat: WebSocket support#441
gmoz22 wants to merge 4 commits intojgilbert01:masterfrom
gmoz22:websocket

Conversation

@gmoz22
Copy link
Copy Markdown

@gmoz22 gmoz22 commented Apr 25, 2026

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

@gmoz22 gmoz22 marked this pull request as draft April 25, 2026 08:40
gmoz22 added 2 commits April 26, 2026 23:51
- Add WebSocketConnector 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
- Document WebSocket support in README
…y support

- Rename connector websocket.js → apigatewayclient.js to match SDK client naming convention
- Add GetConnectionCommand and DeleteConnectionCommand to apigatewayclient connector
- Add disconnectConnections sink (with silent 410 handling) to sinks/websocket.js
- Add queryConnection step in new queries/websocket.js
- Add guard clauses to skip uow missing connectionId or messageField across all three steps
- Add tests
- Fix flavors/websocket.test.js assertion for no-connections case
- Update README WebSocket Support section
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant