     }
     
     /**
-    Causes an event to be handled. Only use if you know what you're doing.
-    */
+     Causes an event to be handled. Only use if you know what you're doing.
+     */
     public func handleEvent(event: String, data: [AnyObject], isInternalMessage: Bool,
         wantsAck ack: Int? = nil) {
             guard status == .Connected || isInternalMessage else {

    }
    
    /**
    Connect to the server.
    */
    public func connect() {
        connect(timeoutAfter: 0, withTimeoutHandler: nil)
    }
    
    /**
    Connect to the server. If we aren't connected after timeoutAfter, call handler
    */
    public func connect(timeoutAfter timeoutAfter: Int,
        withTimeoutHandler handler: (() -> Void)?) {
            assert(timeoutAfter >= 0, "Invalid timeout: \(timeoutAfter)")

            guard status != .Connected else {
                return
            }

            if status == .Closed {
                Logger.log("Warning! This socket was previously closed. This might be dangerous!",
                    type: logType)


public final class SocketIOClient: NSObject, SocketEngineClient {
    public let socketURL: String
    
    public private(set) var engine: SocketEngineSpec?
    public private(set) var secure = false
    public private(set) var status = SocketIOClientStatus.NotConnected
