     private var currentReconnectAttempt = 0
     private var handlers = ContiguousArray<SocketEventHandler>()
     private var connectParams:[String: AnyObject]?
-    private var _secure = false
+    public private(set) var secure = false
     private var reconnectTimer:NSTimer?
     
     let reconnectAttempts:Int!

    public var reconnects = true
   
    public var reconnectWait = 10
    public var secure:Bool {
        return _secure
    }
    public var sid:String? {
        return engine?.sid
    }

    */
    public init(var socketURL:String, opts:[String: AnyObject]? = nil) {
        if socketURL["https://"].matches().count != 0 {
            self.secure = true
        }
        
        socketURL = socketURL["http://"] ~= ""
