Skip to content

Commit 050d39f

Browse files
committed
Fixed a bug to reset counter everytime socket is connected, added SPM and
cocoa pod commands file for deployment
1 parent bf4079a commit 050d39f

File tree

3 files changed

+33
-4
lines changed

3 files changed

+33
-4
lines changed

ScClient.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
#
1717

1818
s.name = "ScClient"
19-
s.version = "1.0.2"
19+
s.version = 1.0.4
2020
s.summary = "A socketcluster client for iOS and OSX."
2121
s.swift_version = '3.2'
2222

Sources/ScClient/client.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ public class ScClient : Listener, WebSocketDelegate {
2929
}
3030

3131
public func websocketDidConnect(socket: WebSocketClient) {
32-
onConnect?(self)
32+
counter.value = 0
3333
self.sendHandShake()
34+
onConnect?(self)
3435
}
3536

3637
public func websocketDidDisconnect(socket: WebSocketClient, error: Error?) {
@@ -200,5 +201,3 @@ public class ScClient : Listener, WebSocketDelegate {
200201
}
201202
}
202203

203-
204-

commands.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
### Swift Package Manager
2+
3+
swift package init — type=library
4+
open -a Xcode Package.swift
5+
swift package resolve
6+
swift package build
7+
swift package test
8+
swift package generate-xcodeproj
9+
swift build
10+
git tag -a 1.0.3 -m "added support for setting background queue, set custom request headers and connection status"
11+
swift build clean
12+
swift build test
13+
14+
15+
### Cocoa Pod
16+
17+
sudo gem install cocoapods
18+
pod --version
19+
pod install
20+
pod setup
21+
pod update
22+
sudo rm -fr ~/.cocoapods/repos/master
23+
pod spec create —help
24+
pod spec create https://github.com/sacOO7/ScClient
25+
pod spec create ScClient
26+
open -a Xcode ScClient.podspec
27+
// Register trunk here with proper description
28+
pod spec lint ScClient.podspec --allow-warnings
29+
pod trunk push ScClient.podspec --allow-warnings
30+

0 commit comments

Comments
 (0)