Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remote repl #41

Open
sonwh98 opened this issue May 11, 2016 · 5 comments
Open

remote repl #41

sonwh98 opened this issue May 11, 2016 · 5 comments

Comments

@sonwh98
Copy link

sonwh98 commented May 11, 2016

I am pair programming on a remote server using tmux. when I run (start-repl) , the browser repl tries to connect ws://localhost. It should connect to the remote host not localhost. How can this be changed so that the browser connects to the repl running on the remote server not on my localhost?

thanks!

@ftravers
Copy link

ftravers commented May 12, 2016

you should specify the

:ws-host

parameter on both the cljs-repl, and reload tasks.

My setup:

(1) browser on localhost
(2) boot serve, cljs-repl, reload, etc... running on remote server

However, but even after setting the :ws-host param on cljs-repl and reload tasks, I still get errors. From a repl I do:

boot.user=> (start-repl) << started Weasel server on ws://127.0.0.1:45591 >> << waiting for client to connect ... Connection is ws://v5.spicevan.com:45591 Writing boot_cljs_repl.cljs...

Then I reload my browser and I get:

WebSocket connection to 'ws://v5.spicevan.com:45591/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED repl.cljs:82WebSocket error g…g.net.W…t.ErrorEvent {type: "error_1", target: g…g.net.WebSocket, currentTarget: g…g.net.WebSocket, propagationStopped_: false, defaultPrevented: false…} repl.cljs:77Closed Websocket REPL connection client.cljs:39 Reload websocket connected. 

@gilesejb
Copy link

I have exactly the same issue.

@Deraen
Copy link
Contributor

Deraen commented Jul 22, 2016

Try setting IP option to select which network interface the server will listen on. 0.0.0.0 should listen on all interfaces.

@gilesejb
Copy link

ah - thank you!

@karneaud
Copy link

this doesn't work with (cljs-repl)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants