the websocket which is injected into the app, responsible for live-reload, repl-eval, etc
the websocket which is injected into the app, responsible for live-reload, repl-eval, etc
(compile-req {:keys [ring-request] :as ctx} worker-proc)
(files-req {:keys [ring-request] :as ctx} {:keys [state-ref] :as worker-proc})
a POST request from the REPL client asking for the compile JS for sources by name sends a {:sources [...]} structure with a vector of source names the response will include [{:js code :name ...} ...] with :js ready to eval
a POST request from the REPL client asking for the compile JS for sources by name sends a {:sources [...]} structure with a vector of source names the response will include [{:js code :name ...} ...] with :js ready to eval
(process-req
{:shadow.http.router/keys [path-tokens] :keys [supervisor] :as ctx})
(process-ws {:shadow.http.router/keys [path-tokens] :keys [supervisor] :as ctx})
(ws-connect {:keys [ring-request] :as ctx} worker-proc runtime-id runtime-type)
(ws-listener-connect {:keys [ring-request] :as ctx}
{:keys [output] :as worker-proc}
client-id)
(ws-loop! {:keys [worker-proc watch-chan in out runtime-out runtime-in]
:as client-state})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close