Skip to content

Commit 34f68b3

Browse files
committed
update changes for starscream 4.0.4
1 parent bea6333 commit 34f68b3

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def clickstream_pods
1212
pod 'SwiftProtobuf', '~> 1.21.0'
1313
pod 'ReachabilitySwift', '5.2.3'
1414
pod 'GRDB.swift', '~> 6.7.0'
15-
pod 'Starscream', '~> 4.0.6'
15+
pod 'Starscream', '4.0.4'
1616
end
1717

1818
target 'Clickstream' do

Podfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ PODS:
33
- GRDB.swift/standard (= 6.7.0)
44
- GRDB.swift/standard (6.7.0)
55
- ReachabilitySwift (5.2.3)
6-
- Starscream (4.0.8)
6+
- Starscream (4.0.4)
77
- SwiftProtobuf (1.21.0)
88

99
DEPENDENCIES:
1010
- GRDB.swift (~> 6.7.0)
1111
- ReachabilitySwift (= 5.2.3)
12-
- Starscream (~> 4.0.6)
12+
- Starscream (= 4.0.4)
1313
- SwiftProtobuf (~> 1.21.0)
1414

1515
SPEC REPOS:
@@ -22,9 +22,9 @@ SPEC REPOS:
2222
SPEC CHECKSUMS:
2323
GRDB.swift: df2fdb0752e88383fc314e1e5d7c3a76d52054eb
2424
ReachabilitySwift: 7f151ff156cea1481a8411701195ac6a984f4979
25-
Starscream: 19b5533ddb925208db698f0ac508a100b884a1b9
25+
Starscream: 5178aed56b316f13fa3bc55694e583d35dd414d9
2626
SwiftProtobuf: afced68785854575756db965e9da52bbf3dc45e7
2727

28-
PODFILE CHECKSUM: 90f76e61798bef03c4deda5bc7d258ea40c1ddd0
28+
PODFILE CHECKSUM: 213a1f773842b7f54321fed274b2d0f1244f4fa5
2929

3030
COCOAPODS: 1.15.2

Sources/Clickstream/NetworkManager/Infrastructure/Sockets/SocketHandler.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ extension DefaultSocketHandler {
216216
checkedSelf.connectionCallback?(.success(.cancelled))
217217
case .viabilityChanged(let status):
218218
checkedSelf.isConnectionRequestOpen = status
219-
case .peerClosed:
220-
checkedSelf.isConnectionRequestOpen = false
219+
// case .peerClosed:
220+
// checkedSelf.isConnectionRequestOpen = false
221221
default:
222222
break
223223
}
@@ -263,11 +263,11 @@ extension DefaultSocketHandler {
263263
guard Tracker.debugMode else { return }
264264
if let error = error, case HTTPUpgradeError.notAnUpgrade(let code) = error {
265265

266-
if code.0 == 401 {
266+
if code == 401 {
267267
let event = HealthAnalysisEvent(eventName: eventName,
268268
reason: FailureReason.AuthenticationError.rawValue)
269269
Tracker.sharedInstance?.record(event: event)
270-
} else if code.0 == 1008 {
270+
} else if code == 1008 {
271271
let event = HealthAnalysisEvent(eventName: eventName,
272272
reason: FailureReason.DuplicateID.rawValue)
273273
Tracker.sharedInstance?.record(event: event)

0 commit comments

Comments
 (0)