Fork me on GitHub
#shadow-cljs
<
2019-09-15
>
alexandergunnarson07:09:07

Hey! Any idea what might be causing a random WebSocket disconnection on load?

alexandergunnarson07:09:21

Not immediately apparent from a Google search

alexandergunnarson07:09:35

My main namespace is really small and my config isn’t too complex

(ns deft.client.search)

(defn ^:export -main [& args]
  (enable-console-print!)
  (println "Hello shadows!"))

(defn reload! [& args]
  (println "reloaded!"))

alexandergunnarson07:09:21

This is the only output from the server

shadow-cljs - HTTP server available at 
shadow-cljs - server version: 2.8.52 running at 
shadow-cljs - nREPL server started on port 50145
shadow-cljs - watching build :local/client.search
[:local/client.search] Configuring build.
[:local/client.search] Compiling ...
[:local/client.search] Build completed. (157 files, 1 compiled, 0 warnings, 3.00s)

thheller07:09:43

@alexandergunnarson uhm only guess I have is that build ids must be simple keywords? (ie. no namespace)

alexandergunnarson14:09:46

By the way your intuition was right — works now. Thanks so much!

thheller07:09:53

that should really be validated better I guess 😛

thheller08:09:06

surprised it works at all to be honest

alexandergunnarson15:09:49

Haha nice, okay! I will fix that! Thanks 🙂