0

Like many others here I am trying to setup websockets through API Gateway + Angular and testing in Chrome. WSCAT works out most of the time but still times out some of the time. Chrome/Angular app times out every single time with "net::ERR_CONNECTION_TIMED_OUT"

   WebSocketSubject.js:91 WebSocket connection to 'wss://xxx.execute-api.region.amazona.com/v1?auth=foobar' failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT

I'm, using rxjs like so:

import {webSocket, WebSocketSubject} from 'rxjs/webSocket';

but i never ever get a connection in Chrome. like i said WSCAT works. I have used it, please do not tell me to use WSCAT :)

UPDATE: Just confirmed, vanilla websockets also don't work, so nothing with the library, and also it fails to connect in Safari. But like i said, wscat works just fine.

Any ideas?

1 Answer 1

1

Not sure what happened, but destroying the API and rebuilding it made it "magically" start working... hopefully it won't happen again.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.