Fork me on GitHub
#shadow-cljs
<
2022-01-15
>
mindbender03:01:16

Where can I see all the available configuration options for shadow-cljs.edn?

mindbender11:01:56

I can't get documentation for some options I see used elsewhere like [:devtools :http-resource-root] among others

thheller12:01:05

because that is deprecated and shouldn't be used anymore. see :dev-http instead

mindbender03:01:07

Is it safe to say that all available configuration options were exhausted in the [UsersGuide](https://shadow-cljs.github.io/docs/UsersGuide.html) ?

Ben Hammond11:01:02

I have a page with a js/WebSocket on it every time shadow-clj recompiles and reloads the page, my WebSocket gets closed Is there any way to mitigate this? (I definitely dont want to disable the hot-compile-and-reload )

thheller12:01:07

@ben.hammond can't really say without knowing what you are doing in the code. the lifecycle callbacks are meant to let you manage your lifecycle and if you do that properly the websocket doesnt disconnect

thheller12:01:33

if you just do (def x (js/WebSocket. ..) then yes that'll disconnect by design, defonce might help

picard-facepalm 1
Ben Hammond12:01:32

Yes of course

Ben Hammond12:01:37

Thank you very much