1回答
- 新しい順
- 投票が多い順
- コメントが多い順
1
Hi, Unfortunately $Connect route cannot send a response back to the client. The connection will get established successfully only when the $connect route complete its execution. Therefore, the response send by the downstream integration (like lambda function attched to $connect route) will not be send to the client. However as a workaround, You can trigger a lambda function "asynchronously" from the $connect route integration lambda function. In this new lambda functiom, you can check recursively whether the connection is established and then send a message to client using @connections api.
Client ------($Connect)------> Lambda Function--------(async Invocation)-----> Lambda function (send message using @connections api)
関連するコンテンツ
- 質問済み 5年前
- AWS公式更新しました 2年前