Skip to content

Unexpected WebSocketTransport connections #1705

@RolandasRazma

Description

@RolandasRazma

Bug report

I would have created PR bout it's potentially breaking change...

-[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. Because if you updating both (headers and payload) you creating unnecessary reconnects, in some cases developer might not even want to connect on those changes (my case)

Steps to reproduce

https://github.com/apollographql/apollo-ios/blob/main/Sources/ApolloWebSocket/WebSocketTransport.swift#L303
https://github.com/apollographql/apollo-ios/blob/main/Sources/ApolloWebSocket/WebSocketTransport.swift#L308

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions