             [clojure.data.json :as json])
   (:import java.net.Socket
            java.lang.StringBuilder
-           [java.io File BufferedReader BufferedWriter]))
+           [java.io File BufferedReader BufferedWriter IOException]))
 
 (defn socket [host port]
   (let [socket (Socket. host port)

             (js/CLOSURE_IMPORT_SCRIPT
               (aget (.. js/goog -dependencies_ -nameToPath) name))))))))

(defrecord JscEnv [host port socket]
  repl/IJavaScriptEnv
  (-setup [this opts]
    (setup this opts))

          {:host "localhost"
           :port 9999}
          options)]
    (JscEnv. host port (atom nil) (atom nil))))

(defn repl-env
  [& {:as options}]
