This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-14
Channels
- # adventofcode (38)
- # announcements (42)
- # aws (3)
- # babashka (8)
- # beginners (165)
- # calva (36)
- # chlorine-clover (14)
- # cider (6)
- # clj-kondo (5)
- # cljsrn (33)
- # clojure (27)
- # clojure-australia (1)
- # clojure-czech (1)
- # clojure-doc (1)
- # clojure-europe (26)
- # clojure-nl (6)
- # clojure-spec (6)
- # clojure-uk (3)
- # clojurescript (10)
- # code-reviews (20)
- # conjure (1)
- # core-logic (5)
- # cursive (3)
- # data-science (5)
- # datomic (35)
- # emacs (1)
- # figwheel-main (3)
- # fulcro (10)
- # honeysql (1)
- # introduce-yourself (4)
- # jobs (3)
- # jobs-discuss (4)
- # minecraft (2)
- # missionary (28)
- # nextjournal (3)
- # off-topic (45)
- # pathom (7)
- # polylith (1)
- # portal (22)
- # practicalli (2)
- # re-frame (4)
- # reagent (19)
- # releases (3)
- # remote-jobs (3)
- # reveal (1)
- # rum (4)
- # shadow-cljs (37)
- # spacemacs (14)
- # sql (1)
- # tools-build (7)
- # tools-deps (16)
- # vim (13)
- # xtdb (15)
Hi! Has anyone got GitPod working with shadow-cljs to be able to eval cljs code in the repl? (I fail with "No available JS runtime." so it seems the repl is not connected properly though, even though Calva output reads "Connected session: cljs, repl: :todomvc")
@holyjak Calva is connecting to your shadow-cljs instance server side. did you open the build in the browser as well? that is the runtime which also needs to connect
Yes, I did
I suspect I might need to open the nrepl per publicly or /and tell shadow to listen on 0.0.0.0 instead of 127...
what does the browser console say? I mean that should be complaining if the websocket can't connect
it does not mention shadow as far as I can see
Found it! How to fix
> Error: Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS.
> at shadow$cljs$devtools$client$websocket$start (/js/cljs-runtime/shadow.cljs.devtools.client.websocket.js:4)
? (GitPod generates address such as https://8181-yellow-whale-bcyy99oq.ws-eu23.gitpod.io for the app)
It is trying to connect to <ws://8181-yellow-whale-bcyy99oq.ws-eu23.gitpod.io:9630/api/remote-relay?server-token=d067c920-5712-4e5c-ac73-cfd0a0bff251> while I need it to use wss and a different domain,
It is also possible websockets are not supported by gitpod, have to figure that out