             aliveTimer = MSWeakTimer.scheduledTimerWithTimeInterval(
                 NSTimeInterval(keepAlive),
                 target: self,
-                selector: "_aliveTimerFired",
+                selector: #selector(CocoaMQTT._aliveTimerFired),
                 userInfo: nil,
                 repeats: true,
                 dispatchQueue: dispatch_get_main_queue())

/**
 * Connection State
 */
enum CocoaMQTTConnState: UInt8 {

    case INIT = 0



    //socket and connection

    public var connState = CocoaMQTTConnState.INIT

    var socket: GCDAsyncSocket?

