gqlgen websocket not close if initFunc returns an error #3082
Unanswered
SrOscuroBlck
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using gqlgen for my GraphQL API and I have some subscription (websocket) in my API. But it's not working as expected:
When initFunc of the transport.Websocket{} return an error the websocket is not close but spam the init function. I would have expected the websocket to be closed and only one request is made to the server.
How can I can properly close the websocket if the init function failed (for instance auth failed) ?
Here is some relevant code that you want to see, if you need more ask for it:
SessionAuthMiddleware
Beta Was this translation helpful? Give feedback.
All reactions