Reputation: 3021
how to connect to existing clojure REPL from ClojureScript or from Java?
the question from title. Is there a helper class/library?
Upvotes: 4
Views: 1383
Reputation: 32715
You are probably using Leiningen, so:
lein repl :connect 51000
(where the last number is the existing port number from the .nrepl-port
file)
Upvotes: 5
Reputation: 91554
check out the network repl nrepl
it lets you connect to your repl over a network from any code you want
Upvotes: 5