Transit transports for nREPL.
A Transit transport simplifies the lives of people using Clojure/ClojureScript/Java clients for nREPL. We use transit-clj to implement transports to be used with nREPL, it supports transit with message pack, json and json verbose.
Just add fastlane as a dependency to your project and you can use it as a transport for nREPL.
[nrepl/fastlane "0.1.0"]
The transports are at fastlane.core:
transit+msgpack
transit+json
transit+json-verbose
Afterwards you can start the server like this:
(require
'[nrepl.server :as server]
'[fastlane.core :as fastlane])
(server/start-server :port 12345 :transport-fn fastlane/transit+json)
You can also start it via the built-in nREPL CLI with the following options:
$ clj -Sdeps '{:deps {nrepl {:mvn/version "0.5.3"} nrepl/fastlane {:mvn/version "0.2.0-SNAPSHOT"}}}' -m nrepl.cmdline --transport fastlane.core/transit+json
$ cat deps.edn
{:aliases
{:nrepl {:extra-deps {nrepl {:mvn/version "0.5.3"}
nrepl/fastlane {:mvn/version "0.2.0-SNAPSHOT"}}}}}
$ clj -R:nrepl -m nrepl.cmdline --transport fastlane.core/transit+json
$ cat deps.edn
{:aliases
{:nrepl {:extra-deps {nrepl {:mvn/version "0.5.3"}
nrepl/fastlane {:mvn/version "0.2.0-SNAPSHOT"}}}}}
$ cat .nrepl.edn
{:transport fastlane.core/transit+json}
$ clj -R:nrepl -m nrepl.cmdline
# With `[nrepl/fastlane "0.2.0-SNAPSHOT"]` at your `project.clj`
# and configuration at .nrepl.edn
$ cat .nrepl.edn
{:transport fastlane.core/transit+json}
$ lein repl :headless
# It should start with transit+json transport
# TODO
Copyright © 2018 Bozhidar Batsov and nREPL contributors
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.