         return self._bsfs!
     }
 
-    internal var _bsfs:BSFS?
+    internal var _bsfs: BSFS?
 
     // Hook the triggers
-    public var triggerHooks=[TriggerHook]()
+    public var triggerHooks = [TriggerHook]()
 
     // Triggered Data is used to store data before data integration
-    internal var _triggeredDataBuffer:[Trigger]=[Trigger]()
+    internal var _triggeredDataBuffer:[Trigger] = [Trigger]()
 
     // An in memory flag to distinguish dotBart import case
-    open var dotBart=false
+    open var dotBart = false
 
     /// The underlining storage hashed by collection name
-    internal var _collections=[String:BartlebyCollection]()
+    internal var _collections = [String:BartlebyCollection]()
 
     /// We store the URL of the active security bookmarks
-    internal var _activeSecurityBookmarks=[String:URL]()
+    internal var _activeSecurityBookmarks = [String:URL]()
 
     // Reachability Manager
     internal var _reachabilityManager:NetworkReachabilityManager?

    internal var _sse:EventSource?

    // The EventSource URL for Server Sent Events
    @objc open dynamic lazy var sseURL:URL=URL(string: self.baseURL.absoluteString+"/SSETriggers?spaceUID=\(self.spaceUID)&observationUID=\(self.UID)&lastIndex=\(self.metadata.lastIntegratedTriggerIndex)&runUID=\(Bartleby.runUID)&showDetails=false")!

    open var synchronizationHandlers:Handlers=Handlers.withoutCompletion()

    internal var _timer:Timer?

    // MARK: - Metrics

    @objc open dynamic var metrics=[Metrics]()

    // MARK: - Logs

    open var enableLog: Bool=true

    open var printLogsToTheConsole: Bool=false

    open var logs=[LogEntry]()



    // The online flag is driving the "connection" process
    // It connects to the SSE and starts the pushLoop
    open var online:Bool = false{
        willSet{
            // Transition on line
            if newValue == true && online == false{
                self._connectToSSE()
            }
            // Transition off line
            if newValue == false && online == true{
                self.log("SSE is transitioning offline",file:#file,function:#function,line:#line,category: "SSE")
                self._closeSSE()
            }
            if newValue == online{
                self.log("Neutral online var setting",file:#file,function:#function,line:#line,category: "SSE")
            }
        }
        didSet{
            self.metadata.online = online
            self.startPushLoopIfNecessary()
        }
    }
