This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-08-18
Channels
- # alda (6)
- # architecture (1)
- # bangalore-clj (3)
- # beginners (39)
- # boot (292)
- # braveandtrue (1)
- # cider (7)
- # clara (2)
- # cljs-dev (20)
- # cljsjs (9)
- # cljsrn (42)
- # clojure (127)
- # clojure-chennai (1)
- # clojure-dev (96)
- # clojure-india (1)
- # clojure-russia (175)
- # clojure-spec (56)
- # clojure-uk (11)
- # clojureindia (1)
- # clojurescript (82)
- # core-async (7)
- # cursive (21)
- # data-science (1)
- # datomic (173)
- # funcool (4)
- # hoplon (8)
- # instaparse (1)
- # jobs (7)
- # jobs-discuss (1)
- # jobs-rus (30)
- # lambdaisland (1)
- # lein-figwheel (8)
- # off-topic (5)
- # om (51)
- # onyx (79)
- # other-languages (7)
- # planck (8)
- # re-frame (95)
- # reagent (6)
- # rum (8)
- # specter (4)
- # untangled (54)
- # yada (5)
Hi, newbie question. How can I change :websocket-url ? Here's my project.clj, it doesn't reflect the port I specified. https://gist.github.com/kiko/91be403a61c552aa07790f89c8db1d59#file-project-clj-L59
@kiko: without being an expert (at all), you need to define the port server side via project.clj
(I’ve been using :server-port
for this), and then make sure from the client side to connect to this. E.g. using figwheel.client/watch-and-reload
. This is where you put the :websocket-url
, and optionally a :jsload-callback
.
@luposlip Thanks. Where the figwheel.client/watch-and-reload should be placed at? By the way, https://github.com/bhauman/lein-figwheel#client-side-configuration-options says :websocket-url to be under :cljsbuild, this confuses me. oO
@kiko:
Perhaps the :websocket-url
is being inserted somewhere dynamically by cljsbuild. In my setup I have this in project.clj
:
:figwheel {:server-port 3450}
and this in dev/start.cljs
which is only compiled in development mode (as configured in project.clj
):
(figwheel.client/watch-and-reload
:websocket-url ""
:jsload-callback #(js/console.log "figwheel ready"))