Skip to content

Retry on fatal closure best practices #323

Answered by enisdenjo
tylerschoppe asked this question in Q&A
Discussion options

You must be logged in to vote

Alternatively you can use the GraphQL over WebSocket Protocol pings and pongs to transmit the refresh token. This way you would keep pinging the server from the client with the necessary credentials in the payload, the server would validate each ping's credentials and proceed accordingly (if valid noop, if invalid close connection).

Recipes "Client usage with manual pings and pongs" and "Server usage with ws and subprotocol pings and pongs" should help you get started.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tylerschoppe
Comment options

@enisdenjo
Comment options

@tylerschoppe
Comment options

Answer selected by enisdenjo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants