2 Respuestas
- Más nuevo
- Más votos
- Más comentarios
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.
respondido hace 10 meses
Contenido relevante
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace un año