     }
 
     //MARK: Helpers
-
     fileprivate func extractEventsFromBuffer() -> [String] {
         var events = [String]()
 

    }

    //Mark: EventListeners

    open func onOpen(_ onOpenCallback: @escaping (() -> Void)) {
        self.onOpenCallback = onOpenCallback
    }


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