Skip to content

Commit

Permalink
Basic bi-directional comms are mostly working
Browse files Browse the repository at this point in the history
  • Loading branch information
awkay committed Dec 11, 2024
1 parent 2193b47 commit f454842
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/com/fulcrologic/fulcro/inspect/inspect_ws.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@
:host SERVER_HOST
:port SERVER_PORT
:packer (make-packer)
:protocol :http
:wrap-recv-evs? false
:backoff-ms-fn backoff-ms}]
(sente/make-channel-socket-client! "/chsk" "no-token-desired"
(if (= (:protocol (enc/get-win-loc)) "file:")
(assoc socket-client-opts :protocol :http)
(if (= (:protocol (enc/get-win-loc)) "https:")
(assoc socket-client-opts :protocol :https)
socket-client-opts))))
(log/debug "Starting websockets at:" SERVER_HOST ":" SERVER_PORT)
(go-loop [attempt 1]
Expand Down

0 comments on commit f454842

Please sign in to comment.