                                (if ssl?  "wss://" "ws://")
                                (.getDomain uri)
                                (when (= (.getDomain uri) "localhost")
-                                 ":" 8082 #_(.getPort uri))
+                                 (str ":" 8082) #_(.getPort uri))
                                "/tweets/ws")))]
             (om/set-state! owner :ws-in (:in connection))
             (om/set-state! owner :ws-out (:out connection))


(defn y
  "Compute linear y component"
  [data height]
  (-> d3
      .-scale
      (.linear)

        :repl-env (weasel.repl.websocket/repl-env
                   :ip "0.0.0.0" :port 17782)))

(ws-repl/connect "ws://localhost:17782" :verbose true)

(def app-state
  (atom
