[{"data":1,"prerenderedAt":56},["ShallowReactive",2],{"pattern-apigw-websocket-ack-connect-route":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":13,"description":16,"extension":17,"framework":18,"gitHub":19,"highlight":6,"introBox":25,"language":29,"level":30,"meta":31,"patternArch":32,"resources":6,"s3URL":6,"services":6,"stem":51,"testing":52,"videoId":6,"__hash__":55},"patterns\u002Fpatterns\u002Fapigw-websocket-ack-connect-route.json","Amazon API Gateway WebSocket acknowledgement for $connect route.",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11,12],"content\u002Fcontributors\u002Fmanasvi-jain.json","content\u002Fcontributors\u002Fumang-aggarwal.json",{"text":14},[15],"sam deploy","This pattern demonstrates acknowledging WebSocket connections with API Gateway and AWS Lambda","json","AWS SAM",{"template":20},{"repoURL":21,"templateURL":22,"projectFolder":23,"templateFile":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-websocket-ack-connect-route","serverless-patterns\u002Fapigw-websocket-ack-connect-route","apigw-websocket-ack-connect-route","template.yml",{"headline":26,"text":27},"How it works",[28],"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.","Python","200",{},{"icon1":33,"icon2":38,"icon3":42,"line1":44,"line2":48},{"x":34,"y":35,"service":36,"label":37},25,50,"apigw","Amazon API Gateway WebSocket API",{"x":39,"y":35,"service":40,"label":41},57,"lambda","AWS Lambda",{"x":43,"y":35,"service":40,"label":41},90,{"from":45,"to":46,"label":47},"icon1","icon2","Validation",{"from":46,"to":49,"label":50},"icon3","Generate Response","patterns\u002Fapigw-websocket-ack-connect-route",{"text":53},[54],"See the GitHub repo for detailed testing instructions.","lbOQCtTBfTTaGaq4WH9PLCk_O5UFILrSxLELFVB_KgY",1778846882999]