Skip to content

Instantly share code, notes, and snippets.

@darwin
Created January 25, 2016 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darwin/20bda519cf6742b460f6 to your computer and use it in GitHub Desktop.
Save darwin/20bda519cf6742b460f6 to your computer and use it in GitHub Desktop.
> lein piggieback-repl 17:57:53
Compiling ClojureScript...
nREPL server started on port 8530 on host 127.0.0.1 - nrepl://127.0.0.1:8530
REPL-y 0.3.7, nREPL 0.2.12
Clojure 1.8.0
Java HotSpot(TM) 64-Bit Server VM 1.8.0_60-b27
Docs: (doc function-name-here)
(find-doc "part-of-name-here")
Source: (source function-name-here)
Javadoc: (javadoc java-object-or-class-here)
Exit: Control+D or (exit) or (quit)
Results: Stored in vars *1, *2, *3, an exception in *e
user=> (require 'weasel.repl.websocket)
nil
user=> (cemerick.piggieback/cljs-repl
#_=> (weasel.repl.websocket/repl-env :ip "0.0.0.0" :port 9001))
<< started Weasel server on ws://0.0.0.0:9001 >>
<< waiting for client to connect ... connected! >>
To quit, type: :cljs/quit
nil
cljs.user=> (+ 1 2)
3
cljs.user=> (.log js/console "AAA")
nil
cljs.user=> (in-ns 'devtools-sample.more)
nil
devtools-sample.more=> test-interleaved
WARNING: Use of undeclared Var devtools-sample.more/test-interleaved at line 1 <cljs repl>
#js {:js true, :nested {:js false, :nested #js {:js2 true, :nested2 {:js2 false}}}}
devtools-sample.more=>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment