This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-02-22
Channels
- # aleph (20)
- # announcements (4)
- # babashka (72)
- # beginners (64)
- # biff (5)
- # calva (146)
- # cider (5)
- # clj-kondo (18)
- # clj-together (3)
- # cljsrn (28)
- # clojure (95)
- # clojure-berlin (2)
- # clojure-europe (34)
- # clojure-nl (2)
- # clojure-norway (3)
- # clojure-uk (3)
- # community-development (7)
- # conjure (1)
- # cursive (2)
- # data-science (12)
- # datalevin (13)
- # datomic (17)
- # events (2)
- # figwheel-main (5)
- # fulcro (7)
- # helix (8)
- # hyperfiddle (52)
- # jobs (1)
- # malli (14)
- # off-topic (32)
- # polylith (24)
- # remote-jobs (7)
- # scittle (3)
- # shadow-cljs (14)
- # slack-help (3)
- # spacemacs (3)
- # vim (2)
- # xtdb (6)
@fenno Is it necessary for you to start the server separately?
You can provide a https://figwheel.org/docs/ring-handler.html to figwheel-main.edn
so figwheel embed a server for you which is very convenient.
Also I notice on your error resources\public\public which looks odd, is your path correct?
Hi @loic, thanks for pointing out the public\public - now corrected! I’ve tried :ring-handler; my only middleware is wrap-defaults. Keeping secure-site-defaults gives ERR_SSL_PROTOCOL_ERROR; downgrading to site-defaults allows the page to load, but then Sente (the library I’m using for websocket comms) fails to connect. https://figwheel.org/docs/your_own_server suggests it’s easy to outgrow :ring-handler, so I’d assumed this was a limitation and that it was time to run a server alongside figwheel-main, but the doc doesn’t provide a lot of detail on how to do so. I think I’m close to the solution as client-server communication works via both Sente and figwheel-main when I run the two separate servers; the only issue I have seems to be the wrap-resource inside of wrap-defaults seems to have exclusive access to the files figwheel-main is trying to rebuild. Of course, I’m open to having misinterpreted everything and being in a coincidentally-nearly-working situation that will never quite fly ☺️
I don't know what could be the problem, but if it helps you can check out my own project that runs figwheel (dev-only) and sente with a separate http-kit server and everything works fine: https://gitlab.com/jan_k/quakelist
Interesting - it looks like the issue might be specific to the way aleph manages resources, as when I switch out to http-kit as in your example it works for me as well. I'll delve further into it but at least I have more knowledge/a workaround for now. Much appreciated :)
This is weird, because Aleph really does nothing with resources whatsoever.
Interesting - it looks like the issue might be specific to the way aleph manages resources, as when I switch out to http-kit as in your example it works for me as well. I'll delve further into it but at least I have more knowledge/a workaround for now. Much appreciated :)