Fork me on GitHub
#shadow-cljs
<
2017-12-07
>
Jon03:12:33

not reproduced after changing to version 114

thheller08:12:10

yeah I messed that up earlier. might need to delete target/shadow-cljs/logging.* in case it still doesn’t work.

Jon10:12:04

Request URL:

Jon10:12:17

I see this when I change my files

Jon10:12:49

but I'm debugging with another device, which does not use localhost to connect my dev server

Jon10:12:42

any options to change it to an IP address? or js/location.hostname?

Jon10:12:55

why it starts two websocket connections, instead of one?

thheller10:12:08

its only two websockets if you use the hud

thheller10:12:21

it is js/location.hostname by default

Jon10:12:13

:devtools {:after-load app.main/reload!
           :preloads [shadow.cljs.devtools.client.hud]
           :http-root "target"
           :http-port 8080}

Jon10:12:24

I think I didn't change it.

thheller10:12:11

have you defined :http {:host ...} ?

thheller10:12:57

check shadow.cljs.devtools.client.env in the javascript console

thheller10:12:28

use-document-host is true so it will use js/document.location.hostname

thheller10:12:12

… the files request doesn’t use that yet

thheller10:12:24

I was confusing it with the websockets which should be using the other host

thheller10:12:42

let me add it for the files req as well

Jon10:12:07

thanks, confirmed it's working, the tab in my other device now reloads correctly 😬

thheller17:12:00

does that mean that you want wasm support?

grav19:12:58

@thheller In my case, I’d like to restart a server every time the source changes.