bartek
bartek

Reputation: 3021

clojure REPL - connect from another process

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

Answers (2)

David J.
David J.

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

Arthur Ulfeldt
Arthur Ulfeldt

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

Related Questions