Skip to content
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

Allow to skip reconnection when updating headers and payload #1759

Merged
merged 1 commit into from Apr 27, 2021

Conversation

RolandasRazma
Copy link
Contributor

Fix for #1705

-[WebSocketTransport updateHeaderValues:]
-[WebSocketTransport updateConnectingPayload:]

"reconnects" not connected socket - it shouldn't - there is reason why it is not connected. At least it should check if it's connected and then reconnect, but even better it should do nothing and allow developer to decide what to do.
If you updating both (headers and payload) you creating unnecessary reconnects, in some cases developer might not even want to connect on those changes

@designatednerd designatednerd added this to the Next Release milestone Apr 27, 2021
@designatednerd designatednerd merged commit 9f1ace6 into apollographql:main Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants