SimonDanisch / Bonito.jl

Serving JS to the browser
MIT License
214 stars 31 forks source link

JuliaHub & Pluto can't open correct WS connection #140

Open SimonDanisch opened 1 year ago

SimonDanisch commented 1 year ago

Just debugged JSServe on JuliaHub Pluto a bit more, and I think someone else is taking the proxied ws connection.

JSServe on the JS side is connecting to something like wss://gjuzu.launch.juliahub.app/proxy/9384/01508d53-4d76-481e-b89f-dfb7f44b2f0c, and listening on 0.0.0.0:9384... The websocket connects and is in readyState, but on the server side no connection ever arrives. This doesn't happen in VSCode on JuliaHub, even though the setup should be quite identical.

pfitzseb commented 1 year ago

cc @pankgeorg

pankgeorg commented 1 year ago

Julia IDE (formerly known as VSCode) on JuliaHub runs a proxy, which the Pluto container doesn't at the moment. The readyState is pretty weird, and we'll investigate it more. Other than that, it's not expected to work at this moment as I understand it now.

SimonDanisch commented 1 year ago

As expected, in an empty Jupyterhub Pluto notebook you can do this:

image