update for xcode 7 beta 4

This commit is contained in:
Erik 2015-07-21 16:19:15 -04:00
parent d073fa8a83
commit a277e88c3b
6 changed files with 7 additions and 7 deletions

View File

@ -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")
}
}

View File

@ -24,7 +24,7 @@
import Foundation
@objc public final class SocketAnyEvent {
public final class SocketAnyEvent: NSObject {
public let event:String!
public let items:NSArray?

View File

@ -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

View File

@ -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}

View File

@ -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)
}

View File

@ -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