cemerick / austin

The ClojureScript browser-REPL rebuilt stronger, faster, easier.
510 stars 31 forks source link

Ability to specify a host (beyond localhost) #41

Closed twashing closed 10 years ago

twashing commented 10 years ago

So I want the ability to make a call like below. The Browser REPL would then listen on 172.16.210.128, or whatever I've passed in.

user=> (cemerick.piggieback/cljs-repl :repl-env (cemerick.austin/exec-env :host "172.16.210.128"))
Browser-REPL ready @ http://172.16.210.128:39407/7290/repl/start
Type `:cljs/quit` to stop the ClojureScript REPL
nil
cljs.user=>

If nothing is passed in, it defaults to localhost.

user=> (cemerick.piggieback/cljs-repl :repl-env (cemerick.austin/exec-env))
Browser-REPL ready @ http://localhost:52650/2839/repl/start
Type `:cljs/quit` to stop the ClojureScript REPL
nil
cljs.user=>
cemerick commented 10 years ago

Sounds sane. Merged, thanks! :-)

twashing commented 10 years ago

Cool. Thanks :)