1 Answer
- Newest
- Most votes
- Most comments
1
API Gateway only support web sockets from the client to the gateway. From the gateway to the backend integration, ECS in your case, it does not support web sockets. You will need to use an HTTP integration type (or VPC Link if the ECS cluster is private).
If your client is not able to established a web socket with the gateway due to firewalls, they may need to revert to polling instead.
I am not sure why you are trying to create a web socket connection from API Gateway to the backend, if the client does not support it anyway.
Relevant content
- asked 4 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 months ago
Worth replacing the REST API over a WebSocket API. ?