Skip to content

Closing the connection based of subscription and token #261

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

You must be logged in to vote

Sadly I am not familiar with GraphqlShield or its inner workings, so I cannot help in that regard. However, I can tell you that you can indeed terminate the connection from within any callback using the ctx.extra.socket. Please consult the server-side "ws server and client auth usage with token expiration, validation and refresh" recipe for an exact example.

Replies: 1 comment 5 replies

Comment options

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

@enisdenjo
Comment options

@alexsserban
Comment options

@enisdenjo
Comment options

@alexsserban
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