Skip to content

Commit

Permalink
Remove debug print statements for websocket status (apollographql/apo…
Browse files Browse the repository at this point in the history
  • Loading branch information
calvincestari authored and gh-action-runner committed Feb 2, 2024
1 parent 6a918a5 commit 6957435
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/ApolloWebSocket/WebSocketTransport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -528,11 +528,10 @@ extension WebSocketTransport: WebSocketClientDelegate {
public func websocketDidDisconnect(socket: WebSocketClient, error: Error?) {
self.$socketConnectionState.mutate { $0 = .disconnected }
if let error = error {
debugPrint("websocket is disconnected: \(error)")
handleDisconnection(with: error)

} else {
self.$error.mutate { $0 = nil }
debugPrint("websocket is disconnected")
self.handleDisconnection()
}
}
Expand Down

0 comments on commit 6957435

Please sign in to comment.