Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disconnect and reconnect after 10 minutes #136

Open
ThomasP1988 opened this issue Mar 9, 2021 · 1 comment
Open

disconnect and reconnect after 10 minutes #136

ThomasP1988 opened this issue Mar 9, 2021 · 1 comment
Labels
question Further information is requested

Comments

@ThomasP1988
Copy link

Hi everyone,

first of all thanks for this awesome library,
My websocket connection is reseting after 10 minutes, I've been trying to find a keep alive or ping option but can't find it.
I've seen that subscriptions-transport-ws is meant to receive those keep alive messages, not to send them, so this option exists in apollo server, any idea how to achieve that?

@michalkvasnicak
Copy link
Owner

Because AWS Api Gateway has 10 minutes idle connection timeout, you need to send something yourself. I guess you can just create some query that returns a constant value and call it regularly. AWS lambda is stateless so there is no way for lambda to send you keep alive message.

@michalkvasnicak michalkvasnicak added the question Further information is requested label Mar 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants