Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(ns example.nrepl
(:require [clojure.tools.nrepl.server :refer [start-server stop-server]]
[cider.nrepl :refer [cider-nrepl-handler]])
(:gen-class))
(defn -main [port]
(let [port (Integer. port)]
(defonce server (start-server :port port :handler cider-nrepl-handler))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment