Skip to content

Commit 19d2395

Browse files
authored
Bumb library version on README file (#40)
* Bumb library version on README file * Fix compilation problem on old versions
1 parent f8f97aa commit 19d2395

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ source 'https://github.com/CocoaPods/Specs.git'
4848
platform :ios, '14.0'
4949
use_frameworks!
5050

51-
pod 'NWWebSocket', '~> 0.5.2'
51+
pod 'NWWebSocket', '~> 0.5.3'
5252
```
5353

5454
Then, run the following command:
@@ -90,7 +90,7 @@ let package = Package(
9090
],
9191
dependencies: [
9292
.package(url: "https://github.com/pusher/NWWebSocket.git",
93-
.upToNextMajor(from: "0.5.2")),
93+
.upToNextMajor(from: "0.5.3")),
9494
],
9595
targets: [
9696
.target(

Sources/NWWebSocket/Model/Client/NWWebSocket.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ open class NWWebSocket: WebSocketConnection {
352352
disconnectionWorkItem?.cancel()
353353

354354
disconnectionWorkItem = DispatchWorkItem { [weak self] in
355-
guard let self else { return }
355+
guard let self = self else { return }
356356
self.delegate?.webSocketDidDisconnect(connection: self,
357357
closeCode: closeCode,
358358
reason: reason)

0 commit comments

Comments
 (0)