2 Risposte
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
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.
con risposta 10 mesi fa
Contenuto pertinente
- AWS UFFICIALEAggiornata 3 anni fa
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata un anno fa