 //  Created by Andres on 2/13/15.
 //  Copyright (c) 2015 Inaka. All rights reserved.
 //
-
 import Foundation
 
 public enum EventSourceState {

    }

    //Mark: Connect

    func connect() {
        var additionalHeaders = self.headers
        if let eventID = self.lastEventID {


        self.readyState = EventSourceState.open
        if self.onOpenCallback != nil {
            DispatchQueue.main.async {
                self.onOpenCallback!()
            }
        }
