We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bdc7c3 commit 3ca47d2Copy full SHA for 3ca47d2
src/main/java/com/pusher/client/connection/websocket/WebSocketConnection.java
@@ -307,10 +307,10 @@ public void run() {
307
}, reconnectInterval, TimeUnit.SECONDS);
308
}
309
310
- // Received error codes 4000 >= 4099 indicate we shouldn't attempt reconnection
+ // Received error codes 4000-4099 indicate we shouldn't attempt reconnection
311
// https://pusher.com/docs/pusher_protocol#error-codes
312
private boolean shouldReconnect(int code) {
313
- return !(code >= 4000 && code <= 4099);
+ return code < 4000 || code >= 4100;
314
315
316
private void cancelTimeoutsAndTransitonToDisconnected() {
0 commit comments