Skip to content

Commit 5ed4723

Browse files
committed
Merge branch 'development'
* development: SocketAckEmitter.isExpected => .expected change isRequired() to isExpected() remove semicolon add SocketAckEmitter.isRequired() fix Use Legacy Swift issue
2 parents 863480a + b6aaa42 commit 5ed4723

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Socket.IO-Client-Swift.podspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ Pod::Spec.new do |s|
1717
s.source = { :git => "https://github.com/socketio/socket.io-client-swift.git", :tag => 'v8.1.0' }
1818
s.source_files = "Source/**/*.swift"
1919
s.requires_arc = true
20+
s.pod_target_xcconfig = {'SWIFT_VERSION' => '3.0'}
2021
# s.dependency 'Starscream', '~> 0.9' # currently this repo includes Starscream swift files
2122
end

Source/SocketAckEmitter.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ import Foundation
2727
public final class SocketAckEmitter : NSObject {
2828
let socket: SocketIOClient
2929
let ackNum: Int
30+
31+
public var expected: Bool {
32+
return ackNum != -1
33+
}
3034

3135
init(socket: SocketIOClient, ackNum: Int) {
3236
self.socket = socket
@@ -44,6 +48,7 @@ public final class SocketAckEmitter : NSObject {
4448

4549
socket.emitAck(ackNum, with: items)
4650
}
51+
4752
}
4853

4954
public final class OnAckCallback : NSObject {

0 commit comments

Comments
 (0)