Skip to content

Commit ea3fca3

Browse files
committed
SocketAckEmitter.isExpected => .expected
1 parent efad448 commit ea3fca3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Source/SocketAckEmitter.swift

Lines changed: 4 additions & 3 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
@@ -45,9 +49,6 @@ public final class SocketAckEmitter : NSObject {
4549
socket.emitAck(ackNum, with: items)
4650
}
4751

48-
public func isExpected() -> Bool {
49-
return ackNum != -1
50-
}
5152
}
5253

5354
public final class OnAckCallback : NSObject {

0 commit comments

Comments
 (0)