-
Notifications
You must be signed in to change notification settings - Fork 0
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
BET-4061: Apollo 0.23.1 #6
Conversation
New Tutorial Pt. 3
agreed, Also curios why we have connect/disconnect and the socket public |
We connect/disconnect when we update the auth token. Otherwise from what I remember we'll have to create a new |
and that is dependency injected all the way down so sending a new one is a PITA. LOL. we don't use the methods we added. we use the exposed web socket directly private func disconnectWebsockets(reconnect: Bool = false) {
let websockets = queryRouter.endpoints.compactMap { $0.websocketTransport?.websocket as? WebSocket }
websockets.forEach { $0.disconnect() }
if reconnect {
websockets.forEach { $0.connect() }
}
} |
Lol we can discard that change then. |
And it looks like that is the only time we use |
I wonder if instead of connect/disconnect we can use the existing |
Looking at their |
…tests More parsing and tests!
Created https://jira.thescore.com/browse/BET-4109 to track pushing the changes upstream |
cde62b2
to
7a60430
Compare
This reverts commit 50d8f27. We already have the connect() and disconnect() methods.
* origin/connect: Extend 'WebSocketTransportDelegate' protocol Expose 'reconnectionInterval' property Extend 'WebSocketTransportDelegate' protocol Made connectingPayload public Made the websocket public Expose 'security' for SSL pinning Exposed a method to connect/disconnect # Conflicts: # Sources/ApolloWebSocket/WebSocketTransport.swift
7a60430
to
aa6fda1
Compare
Updated Apollo Version
Release notes: https://github.com/apollographql/apollo-ios/releases
They made some fixes to the Watcher and Caching, which should fix some issues we are currently facing.
Created this branch off
connect
and then rebased on top ofupstream/master
Afterwards merged
connect
into this branch.No new merge conflicts other than from the commits we had before.