I am trying to create a chat app using Flask Websocket hosted on EC2 and expose using API Gateway. My App has both HTTP as well as SocketIO connection. My request flow is Browser -> API Gateway -> NLB -> EC2 . I created another API Gateway of type Websocket and but I am not able to connect to that API gateway. I tried testing with postman websocket request. I am able to connect to EC2 , I am able to connect to NLB (both on host 8765) but not able to conenct to AWS Gateway. I have followed all the posible permutations on API Gateway Websocket but not sucessfull. From post man I am getting HTTP 426 . Any pointers what should I do or document I can refer to. Below is my connection code from Front end
2
-
I am not an expert, but I came across this Q&A that might be helpful to you. stackoverflow.com/questions/42324473/…Nir Levy– Nir Levy2024-07-07 11:17:55 +00:00Commented Jul 7, 2024 at 11:17
-
I also found this one: enlabsoftware.com/development/…Nir Levy– Nir Levy2024-07-07 11:19:53 +00:00Commented Jul 7, 2024 at 11:19
Add a comment
|