update for xcode 7 beta 4
This commit is contained in:
parent
d073fa8a83
commit
a277e88c3b
@ -15,7 +15,7 @@ socket.on("currentAmount") {data, ack in
|
||||
socket.emit("update", ["amount": cur + 2.50])
|
||||
}
|
||||
|
||||
ack?(["Got your currentAmount", "dude"])
|
||||
ack?("Got your currentAmount", "dude")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
|
||||
import Foundation
|
||||
|
||||
@objc public final class SocketAnyEvent {
|
||||
public final class SocketAnyEvent: NSObject {
|
||||
public let event:String!
|
||||
public let items:NSArray?
|
||||
|
||||
|
||||
@ -284,7 +284,7 @@ public final class SocketEngine: NSObject, WebSocketDelegate, SocketLogClient {
|
||||
} else if !this.closed && this.polling {
|
||||
this.doPoll()
|
||||
}
|
||||
}}?.resume()
|
||||
}}.resume()
|
||||
}
|
||||
|
||||
private func flushProbeWait() {
|
||||
@ -361,7 +361,7 @@ public final class SocketEngine: NSObject, WebSocketDelegate, SocketLogClient {
|
||||
this?.doPoll()
|
||||
}
|
||||
}
|
||||
}}?.resume()
|
||||
}}.resume()
|
||||
}
|
||||
|
||||
// We had packets waiting for send when we upgraded
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
import Foundation
|
||||
|
||||
@objc public protocol SocketEngineClient {
|
||||
var handleQueue:dispatch_queue_attr_t! {get}
|
||||
var handleQueue:dispatch_queue_t! {get}
|
||||
var socketURL:String {get}
|
||||
var secure:Bool {get}
|
||||
|
||||
|
||||
@ -25,7 +25,7 @@
|
||||
import Foundation
|
||||
|
||||
private func emitAckCallback(socket:SocketIOClient?, num:Int?)
|
||||
(items:[AnyObject]) -> Void {
|
||||
(items:AnyObject...) -> Void {
|
||||
socket?.emitAck(num ?? -1, withData: items)
|
||||
}
|
||||
|
||||
|
||||
@ -25,6 +25,6 @@
|
||||
import Foundation
|
||||
|
||||
public typealias AckCallback = (NSArray?) -> Void
|
||||
public typealias AckEmitter = ([AnyObject]) -> Void
|
||||
public typealias AckEmitter = (AnyObject...) -> Void
|
||||
public typealias NormalCallback = (NSArray?, AckEmitter?) -> Void
|
||||
public typealias OnAckCallback = (timeout:UInt64, callback:AckCallback) -> Void
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user