 
     //socket and connection
 
-    var connState = CocoaMQTTConnState.INIT
+    public var connState = CocoaMQTTConnState.INIT
 
     var socket: GCDAsyncSocket?
 

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

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

    case INIT = 0

