move declaration of postWait

This commit is contained in:
Erik 2016-01-15 14:21:59 -05:00
parent 3979b36f63
commit 443f5c5b22
2 changed files with 3 additions and 4 deletions

View File

@ -26,6 +26,7 @@ import Foundation
public protocol SocketEnginePollable: SocketEngineSpec {
var invalidated: Bool { get }
var postWait: [String] { get set } // Would like to change to get only
var session: NSURLSession? { get }
var waitingForPoll: Bool { get set }
var waitingForPost: Bool { get set }
@ -191,8 +192,7 @@ extension SocketEnginePollable {
/// Send polling message.
/// Only call on emitQueue
public func sendPollMessage(message: String, withType type: SocketEnginePacketType,
withData datas: [NSData]) {
public func sendPollMessage(message: String, withType type: SocketEnginePacketType, withData datas: [NSData]) {
DefaultSocketLogger.Logger.log("Sending poll: %@ as type: %@", type: "SocketEngine", args: message, type.rawValue)
let fixedMessage = doubleEncodeUTF8(message)
let strMsg = "\(type.rawValue)\(fixedMessage)"

View File

@ -37,8 +37,7 @@ import Foundation
var parseQueue: dispatch_queue_t! { get }
var pingTimer: NSTimer? { get }
var polling: Bool { get }
var postWait: [String] { get set } // Would like to change to get only
var probing: Bool { get } // Would like to change to get only
var probing: Bool { get }
var emitQueue: dispatch_queue_t! { get }
var handleQueue: dispatch_queue_t! { get }
var sid: String { get }