File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ extension PusherConnection: WebSocketConnectionDelegate {
143
143
}
144
144
145
145
func webSocketDidReceiveError( connection: WebSocketConnection , error: Error ) {
146
- self . delegate? . debugLog ? ( message: PusherLogger . debug ( for: . disconnectionWithError ,
146
+ self . delegate? . debugLog ? ( message: PusherLogger . debug ( for: . errorReceived ,
147
147
context: " Error (code: \( ( error as NSError ) . code) ): \( error. localizedDescription) " ) )
148
148
}
149
149
}
Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ internal class PusherLogger {
32
32
" Connection state is 'connected' but received network reachability change so going to call attemptReconnect "
33
33
case attemptReconnectionAfterWaiting = " Attempting to reconnect after waiting "
34
34
case connectionEstablished = " Socket established with socket ID: "
35
- case disconnectionWithError = " Websocket is disconnected. "
36
35
case disconnectionWithoutError = " Websocket is disconnected but no error received "
36
+ case errorReceived = " Websocket received error. "
37
37
case intentionalDisconnection = " Deliberate disconnection - skipping reconnect attempts "
38
38
case maxReconnectAttemptsLimitReached = " Max reconnect attempts reached "
39
39
case reconnectionFailureLikely = " Network unreachable so reconnect likely to fail "
You can’t perform that action at this time.
0 commit comments