-
Screenshot Expected Behaviour Actual Behaviour
to Debug Information
The socket.onclose function gets called when server restarts without the retry functionality. If any more information is needed, let me know. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hey there, close code Lines 841 to 844 in eea18ce Consider using |
Beta Was this translation helpful? Give feedback.
-
As it turned out, preparing the backend to send the aforementioned codes as a response would be complicated. We're facing this issue when Kubernetes do a rolling deployment, and it's difficult to signal when it's not a Normal Closure. In the interim, we would like to patch this library in a way when we receive the |
Beta Was this translation helpful? Give feedback.
-
Sorry for asking @enisdenjo before trying this out myself, but we're using Hasura also and I was wondering if |
Beta Was this translation helpful? Give feedback.
Hey there, close code
1000: Normal Closure
means we're good and done - it should not be used as a problematic close code. graphql-ws intentionally skips this code and will not retry it:graphql-ws/src/client.ts
Lines 841 to 844 in eea18ce
Consider using
1001: Going Away
, or even1012: Service Restart
, or1013: Try Again Later
, as a better-fitting indicator that the server is being restarted.