Skip to content

Commit 7289b2d

Browse files
Update ack-connect-route/README.md
Co-authored-by: ellisms <114107920+ellisms@users.noreply.github.com>
1 parent ed01dee commit 7289b2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ack-connect-route/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Websocket acknowledgement for $connect route in Amazon API Gateway
22

3-
The Serverless Application Model (SAM) template deploys an Amazon WebSocket API Gateway and two AWS Lambda functions. When a client connects, the API Gateway creates a $connect route with Lambda proxy integration. The first Lambda function processes the initial connection, capturing both the Connection ID and API Gateway stage URL, then asynchronously triggers the second Lambda function. This second function validates the Connection ID and, if valid, uses SDK API calls to send a greeting message back to the client.
3+
The Serverless Application Model (SAM) template deploys an Amazon WebSocket API Gateway and two AWS Lambda functions. When a client connects, the API Gateway creates a $connect route with Lambda proxy integration. The first Lambda function processes the initial connection, capturing both the Connection ID and API Gateway stage URL, then asynchronously invokes the second Lambda function. This second function validates the Connection ID and, if valid, uses SDK API calls to send a greeting message back to the client.
44

55
Learn more about this pattern at Serverless Land Patterns: https://serverlessland.com/patterns
66

0 commit comments

Comments
 (0)