WebSocket API gateway connection issue

0

We are working on the ASP.Net core API application. In this application, we have a SignalR module for notification. We plan to host the application in the AWS environment. We have used AWS lambda service to host the API, we plan to use a Web Socket API to consume the notification/SignalR part.

We are facing an issue with connecting the notification URL. When we tried to connect the Web socket URL from Commandline using Node, it is showing "Unexpected server response 403".

When we tried to consume the URL from the frontend application, it showed the below error. "WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled. ."

We are stuck with this issue. Any help to resolve this issue would be appreciable.

1 個回答
0

I have tried API Gateway socket here GitHub and also record a video. Hope it can helps.

hai
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南