Skip to content

Commit

Permalink
Assign callback queue before connecting
Browse files Browse the repository at this point in the history
  • Loading branch information
calvincestari committed Oct 31, 2024
1 parent 71c1852 commit 740ad68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apollo-ios/Sources/ApolloWebSocket/WebSocketTransport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,11 @@ public class WebSocketTransport {
self.addApolloClientHeaders(to: &self.websocket.request)

self.websocket.delegate = self
self.websocket.callbackQueue = processingQueue

if config.connectOnInit {
self.websocket.connect()
}
self.websocket.callbackQueue = processingQueue
}

public func isConnected() -> Bool {
Expand Down

0 comments on commit 740ad68

Please sign in to comment.