Skip to content

Commit 8bdc9cd

Browse files
committed
Error codes in 4300-4399 range are not sent as custom closure codes.
1 parent 25e9771 commit 8bdc9cd

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

Sources/Models/PusherChannelsProtocolCloseCode.swift

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ internal enum PusherChannelsProtocolCloseCode: UInt16 {
2828
/// and that the client may reconnect immediately.
2929
case reconnectImmediately
3030

31-
/// Indicates any other type of error in the connection being closed by Pusher Channels,
32-
/// and the client may reconnect if appropriate.
33-
case reconnectIfAppropriate
34-
3531
/// Indicates that the reconnection strategy is unknown due to the closure code being
3632
/// outside of the expected range as specified by the Pusher Channels Protocol.
3733
case unknown
@@ -46,8 +42,6 @@ internal enum PusherChannelsProtocolCloseCode: UInt16 {
4642
self = .reconnectAfterBackingOff
4743
case 4200...4299:
4844
self = .reconnectImmediately
49-
case 4300...4399:
50-
self = .reconnectIfAppropriate
5145
default:
5246
self = .unknown
5347
}
@@ -78,9 +72,6 @@ internal enum PusherChannelsProtocolCloseCode: UInt16 {
7872
/// and client does not support ping.
7973
case closedAfterInactivity = 4202
8074

81-
// 4300 - 4399
82-
case clientEventRejectedDueToRateLimit = 4300
83-
8475
// MARK: - Public properties
8576

8677
var reconnectionStrategy: ReconnectionStrategy {

0 commit comments

Comments
 (0)