Posts messages back to WebSocket connections through the API Gateway Management API.
In an API Gateway WebSocket API there is no held socket: to push to a client you call
postToConnection against the management endpoint (https://<domain>/<stage>). A stale
connection (410 Gone) is swallowed, since it just means the client has since disconnected.
@aws-sdk/client-apigatewaymanagementapi is imported lazily as an optional peer dependency.
Posts messages back to WebSocket connections through the API Gateway Management API.
In an API Gateway WebSocket API there is no held socket: to push to a client you call
postToConnectionagainst the management endpoint (https://<domain>/<stage>). A stale connection (410 Gone) is swallowed, since it just means the client has since disconnected.@aws-sdk/client-apigatewaymanagementapiis imported lazily as an optional peer dependency.