Skip to content

Reconnect doesn't work after Safari drops WebSocket connection when the user locks the screen on a mobile device. #290

Discussion options

You must be logged in to vote

This problem is specific to Safari and seems like NoSleep.js does the trick of keeping the socket alive, but it comes with a cost as described in #290 (reply in thread).

I will be looking into integrating a solution into graphql-ws; however, this is not that straight forward as mentioned briefly in #290 (comment). Please consult the "Client usage with abrupt termination on pong timeout" recipe.

Replies: 3 comments 14 replies

Comment options

You must be logged in to vote
9 replies
@SerhiiZvinskyi-q4inc
Comment options

@enisdenjo
Comment options

@SerhiiZvinskyi-q4inc
Comment options

@enisdenjo
Comment options

@SerhiiZvinskyi-q4inc
Comment options

Comment options

You must be logged in to vote
5 replies
@flipace
Comment options

@enisdenjo
Comment options

@flipace
Comment options

@enisdenjo
Comment options

@flipace
Comment options

Answer selected by enisdenjo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #289 on December 21, 2021 16:59.