Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(require 'tubular.core)
(tubular.core/connect "127.0.0.1" REPL_PORT)
(require '[figwheel-sidecar.repl :as r]
'[figwheel-sidecar.repl-api :as ra]
'[clojure.core.server :as server])
(ra/start-figwheel!
{:figwheel-options
{:server-ip SERVER_IP :server-port SERVER_PORT}
:build-ids ["foo"]
:all-builds
[{:id "foo"
:figwheel {:websocket-url (str "ws://" CLIENT_IP ":" CLIENT_PORT "/figwheel-ws")}
:source-paths ["src/"]
:compiler {
:main 'foo.core
:asset-path "js/out"
:output-to "resources/public/js/out/main.js"
:output-dir "resources/public/js/out"}}]})
(server/start-server
{:address SERVER_IP
:port REPL_PORT
:name :cljs-socket-repl
:accept `ra/cljs-repl})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.