Skip to content

Commit

Permalink
Merge pull request #23 from hunble/master
Browse files Browse the repository at this point in the history
Update Dependencies i.e. Reachability
  • Loading branch information
Romixery authored May 16, 2024
2 parents ad9cec9 + b13169d commit 29dcec1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/daltoniam/Starscream.git", .exact("4.0.6")),
.package(url: "https://github.com/ashleymills/Reachability.swift", .upToNextMinor(from: "5.0.0"))
.package(url: "https://github.com/ashleymills/Reachability.swift", .upToNextMajor(from: "5.0.0"))
],
targets: [
.target(
Expand Down
8 changes: 8 additions & 0 deletions SwiftStomp/Classes/SwiftStomp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,15 @@ extension SwiftStomp : WebSocketDelegate{
self.scheduleConnector()
}
case .peerClosed:
self.status = .socketDisconnected

stompLog(type: .info, message: "Socket: Peer closed")

self.delegate?.onSocketEvent(eventName: "peerClosed", description: "Socket Closed by Peer")

if self.autoReconnect{
self.scheduleConnector()
}
@unknown default:
stompLog(type: .info, message: "Socket: Unexpected event kind: \(String(describing: event))")
}
Expand Down

0 comments on commit 29dcec1

Please sign in to comment.