2 Answers
- Newest
- Most votes
- Most comments
0
I am not sure I fully understand your setup.
With websockets in API Gateway that are two parts: The first is the one that API Gateway invokes when it receives a message from the client (either $connect when the client connects, or $default, for the messages themselves the client sends on the socket). The second is the way for the backend to send messages back to the client. This is done by using the post_to_connection API.
If you need to react to messages from the client, you need to connect Lambda #2 to the $default route in API Gateway.
0
Hi, Uri thanks for your reply.
If you need to react to messages from the client, you need to connect Lambda #2 to the $default route in API Gateway.
I tried it and got the reply from client.
answered 9 months ago
Relevant content
- asked 2 years ago
- asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 5 months ago