     weak var client:SocketEngineClient?
     var cookies:[NSHTTPCookie]?
     var log = false
-    var pingInterval:Int?
     var polling:Bool {
         return _polling
     }

        } else if type == PacketType.NOOP {
            doPoll()
        } else if type == PacketType.PONG {
            gotPong = true
            
            // We should upgrade
            if message == "3probe" {

    private var fastUpgrade = false
    private var forcePolling = false
    private var forceWebsockets = false
    private var pingInterval:Int?
    private var pingTimer:NSTimer?
    private var pingTimeout = 0
    private var pongsMissed = 0
    private var pongsMissedMax:Int {
        return pingTimeout / (pingInterval ?? 25)
    }
    private var postWait = [String]()
    private var _polling = true
    private var probing = false
