-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WebSocketLink] inactivityTimeout causes a reconnect #430
Comments
Can you use the TransportWebsocketLink instead? The architecture of TransportWebsocketLink is generally better, and the protocol that transport WebSocketLink implements is deprecated. I imagine there will probably not a lot of maintenance work flow into WebSocketLink (unless someone steps up ;) ) |
Then please add the Deprecated annotation. I wasn't aware of that, and the documentation also doesn't say it. |
Well, there are two different protocols for graphql over Websockets.
To make matters worse, the javascript library implementing the The But I would not completely deprecate the However, if your server supports both, you should definitely use the If you have suggestions on how the documentation around this can be improved, feel free to open issues or PRs. |
If it's broken and not going to be fixed, isn't that the definition of deprecation? If you don't want people to encounter warnings when using that class, maybe just include what you told me here in the documentation of that class.
|
Well, at least I'm not going to fix it in the near future. But I'm also not the original contributor and I'm not using the Websocketlinks myself. If someone from the community is willing to fix it or take over maintenance, they are welcome of course. |
When a WebSocketLink is closed due to the
inactivityTimeout
running out, it's automatically reconnected due toautoReconnect = true
. This defeats the purpose of aninactivityTimeout
.The text was updated successfully, but these errors were encountered: