Skip to content

Allow to skip reconnection when updating headers and payload#1759

Merged
designatednerd merged 1 commit intoapollographql:mainfrom
getfiit:issues_1705
Apr 27, 2021
Merged

Allow to skip reconnection when updating headers and payload#1759
designatednerd merged 1 commit intoapollographql:mainfrom
getfiit:issues_1705

Conversation

@RolandasRazma
Copy link
Copy Markdown
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.

2 participants