Skip to content

Commit

Permalink
update changes for starscream 4.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
RishavG96 committed Jun 26, 2024
1 parent bea6333 commit 34f68b3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def clickstream_pods
pod 'SwiftProtobuf', '~> 1.21.0'
pod 'ReachabilitySwift', '5.2.3'
pod 'GRDB.swift', '~> 6.7.0'
pod 'Starscream', '~> 4.0.6'
pod 'Starscream', '4.0.4'
end

target 'Clickstream' do
Expand Down
8 changes: 4 additions & 4 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ PODS:
- GRDB.swift/standard (= 6.7.0)
- GRDB.swift/standard (6.7.0)
- ReachabilitySwift (5.2.3)
- Starscream (4.0.8)
- Starscream (4.0.4)
- SwiftProtobuf (1.21.0)

DEPENDENCIES:
- GRDB.swift (~> 6.7.0)
- ReachabilitySwift (= 5.2.3)
- Starscream (~> 4.0.6)
- Starscream (= 4.0.4)
- SwiftProtobuf (~> 1.21.0)

SPEC REPOS:
Expand All @@ -22,9 +22,9 @@ SPEC REPOS:
SPEC CHECKSUMS:
GRDB.swift: df2fdb0752e88383fc314e1e5d7c3a76d52054eb
ReachabilitySwift: 7f151ff156cea1481a8411701195ac6a984f4979
Starscream: 19b5533ddb925208db698f0ac508a100b884a1b9
Starscream: 5178aed56b316f13fa3bc55694e583d35dd414d9
SwiftProtobuf: afced68785854575756db965e9da52bbf3dc45e7

PODFILE CHECKSUM: 90f76e61798bef03c4deda5bc7d258ea40c1ddd0
PODFILE CHECKSUM: 213a1f773842b7f54321fed274b2d0f1244f4fa5

COCOAPODS: 1.15.2
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ extension DefaultSocketHandler {
checkedSelf.connectionCallback?(.success(.cancelled))
case .viabilityChanged(let status):
checkedSelf.isConnectionRequestOpen = status
case .peerClosed:
checkedSelf.isConnectionRequestOpen = false
// case .peerClosed:
// checkedSelf.isConnectionRequestOpen = false
default:
break
}
Expand Down Expand Up @@ -263,11 +263,11 @@ extension DefaultSocketHandler {
guard Tracker.debugMode else { return }
if let error = error, case HTTPUpgradeError.notAnUpgrade(let code) = error {

if code.0 == 401 {
if code == 401 {
let event = HealthAnalysisEvent(eventName: eventName,
reason: FailureReason.AuthenticationError.rawValue)
Tracker.sharedInstance?.record(event: event)
} else if code.0 == 1008 {
} else if code == 1008 {
let event = HealthAnalysisEvent(eventName: eventName,
reason: FailureReason.DuplicateID.rawValue)
Tracker.sharedInstance?.record(event: event)
Expand Down

0 comments on commit 34f68b3

Please sign in to comment.