 ;; http async polling - long polling
 ;; ------------------------------------------------------------------
 
-;; TODO explore shorter long polling timeouts
-;; TODO make long polling client reconnect when server isn't present
-;; TODO perhaps different endpoint for long polling?
-
-;; TODO probably better to base the simple polling on a similar pattern
-
 ;; agents would be easier but heavier and agent clean up is harder
 (defn long-poll-send [comm-atom msg]
   (let [data (volatile! nil)

(defn debug [msg]
  (glog/log logger goog.debug.Logger.Level.FINEST msg))

;; dev
(.setLevel logger goog.debug.Logger.Level.FINE #_ST )

;; --------------------------------------------------------------


;; TODO fix figwheel-core to use this
(defn ^:export after-reloads [f]
  (swap! reload-promise-chain #(.then % (fn [_] (Promise. f)))))

;; --------------------------------------------------------------
;; Websocket REPL
