Clojure Socket Prepl Cookbook
The REPL session and prepl share the same environment so changes in the CLI REPL affect the prepl and the other way around. This is essentially the same as the first line in the CLI only approach, you can swap out the function for for example and get a node prepl. This means you can send code to the socket prepl but it’ll rely on figwheel for compiling that ClojureScript and getting the resulting JavaScript into the browser (or node process!)
Source: oli.me.uk