inf-clojure 2022-01-05

Can I use inf-clojure for shadow-cljs? I mean send code to evaluate in cljs repl. How can I connect?

shadow-cljs starts up a socket repl so connect to that as normal

tl;dr, either a port in .shadow-cljs/socket-repl.port or specify the port with

{...
 :socket-repl
 {:port 9000}
 ...}

Which command should I use from the inf-clojure side?

Ohh, I can not omit localhost for Host.

inf-clojure-connect then localhost and whatever port is started up.

i think at one point i made a little function that would read the port out of the socket-repl.port file and then do (inf-clojure-connect '("localhost" . that-port)) or whatever shape it expected