function | since v0.0-2629 | Edit |
(repl-env* options)
(defn repl-env* [options]
(let [{:keys [host port path debug-port]}
(merge
{:host "localhost"
:port (+ 49000 (rand-int 10000))}
options)]
(assoc
(NodeEnv. host port path
(atom nil) (atom nil) (atom {:listeners 0}))
:debug-port debug-port)))