Skip to content

Commit

Permalink
Bumb library version on README file (#40)
Browse files Browse the repository at this point in the history
* Bumb library version on README file

* Fix compilation problem on old versions
  • Loading branch information
fbenevides authored May 19, 2023
1 parent f8f97aa commit 19d2395
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '14.0'
use_frameworks!

pod 'NWWebSocket', '~> 0.5.2'
pod 'NWWebSocket', '~> 0.5.3'
```

Then, run the following command:
Expand Down Expand Up @@ -90,7 +90,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/pusher/NWWebSocket.git",
.upToNextMajor(from: "0.5.2")),
.upToNextMajor(from: "0.5.3")),
],
targets: [
.target(
Expand Down
2 changes: 1 addition & 1 deletion Sources/NWWebSocket/Model/Client/NWWebSocket.swift
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ open class NWWebSocket: WebSocketConnection {
disconnectionWorkItem?.cancel()

disconnectionWorkItem = DispatchWorkItem { [weak self] in
guard let self else { return }
guard let self = self else { return }
self.delegate?.webSocketDidDisconnect(connection: self,
closeCode: closeCode,
reason: reason)
Expand Down

0 comments on commit 19d2395

Please sign in to comment.