2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
1
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.
répondu il y a 10 mois
Contenus pertinents
- demandé il y a un an
- demandé il y a 2 mois
- Réponse acceptéedemandé il y a un an
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans