 ;   {:target (. js/document (getElementById "inspector"))})
 
 (defn send-update [state]
+  (prn "Sending update!")
   (.send @socket (pr-str (select-keys (state :tx-data) [:new-value :path]))))
 
 (let [sub-chan (chan)]

            [om-sync.core :refer [om-sync]]
            [om-sync.util :refer [tx-tag edn-xhr]]
            [cljs-workspace.morph :as morphic :refer [set-fill toggle-halo find-morph-path]]
            [cljs-workspace.history :as history :refer [app-state init-history]]
            [cljs-workspace.repl :as repl]
            [cljs-workspace.branch-merge :as branch-merge])
  (:import [goog.events EventType]))

(enable-console-print!)

             conn (js/WebSocket. (str "ws://" host ":" port "/ws"))]
            (set! (.-onmessage conn) (fn [e] 
              (when-let [state (read-string (.-data e))]
                (.log js/console e)
                (history/save-to-master state)
                (when (is-master @current-branch) (reset! app-state state)))))
            (reset! socket conn)) ; set the socket, so that it can be used for sending things
        (when-not (nil? res) (reset! app-state res))
        (om/root app-view app-state
