2 回答
- 最新
- 投票最多
- 评论最多
2
You should choose the HTTP integration, and when you do, you will be able to choose a Proxy integration that passes all information to the backend in an HTTP request. In your Lightsail server you will need to run an HTTP server that will listen to those HTTP requests. When your server will need to send a message to the client, it will need to make an API call to API Gateway's @connection end point.
0
Hi,vegetabo,I don't know you whether know the "X-UI",maybe you can try this and easily to use socket
已回答 5 个月前
相关内容
- AWS 官方已更新 1 年前
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前
Thank you for your response, I appreciate it. So does this mean that the websocket API gateway cannot directly connect to an instance via websocket, and the only option is to change the backend server to HTTP?
Correct. The websocket connection itself is terminated at the API Gateway, and it uses HTTP requests to communicate with the backend integrations. If you want a websocket to your backend, don't use API Gateway.