AWS Certified Solutions Architect - Professional 2020

Sign Up Free or Log In to participate!

Can I proxy Websocket connection through API Gateway?

Currently I am using the API Gateway as a kind of proxy to provide https simply

https://random-aws-name.com => http://my-domain.com

The route was $default

The integration setup is HTTP ANY -> http://my-domain.com

I am now having to setup an Websocket server on my domain that is already listening at ws://my-domain.com. I can connect directly to this socket but not using the AWS API Gateway

wss://random-aws-name.com => ws://my-domain.com

Currently I an getting unexpected error 400, using wscat

1 Answers

Hi Quoc,

Doesn’t look like anyone here has an answer for you.  I personally haven’t used websockets with the API gateway.  I do know however, that when I make a change on the gateway, I usually need to let it redeploy on Cloudfront before it behaves correctly for me…in that time I have gotten 400 errors that really confused me…but eventually, they settle.

Good luck.

–Scott

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?