@borkdude - on scittle.nrepl there's some code that checks to see if SCITTLE_NREPL_WEBSOCKET_PORT is set and if so it sets the ws_nrepl variable.
https://github.com/babashka/scittle/blob/12e5a33964e0dd8feba8537c62867abb3aa5e81a/src/scittle/nrepl.cljs#L34
shouldn't
(new js/WebSocket "")
be
(new js/WebSocket (str ":" (.-SCITTLE_NREPL_WEBSOCKET_PORT js/window) "/_nrepl")
That port var isn't getting used anywhere else
I'm not running it, just browsing through and it seemed wrong
maybe yes
please try it out and submit a PR if it turns out to be true
I've confirmed that it is broken and I've fixed it. However, I have a question. For the example to be fixed, a dist needs to be pushed with potentially a version bump. So this is going to have to happen in two stages. First a PR to merge the changes and generate a dist. Then once that dist is pushed to CDN, change the example to reflect the correct version. Is that fine?
sure
I've raised a PR. https://github.com/babashka/scittle/pull/45
Kindly approve.
Two comments
I've made the relevant changes. Used a when-let and tested it in prod and dev mode.
I've removed the deref as well.
Thanks!
Can you also update the changelog?
Under the "Unreleased" section would be good
Sure
Is there an unreleased section or do I just tack it on in the top?
Added
Thanks @borkdude
Likewise