meant to use reset! here of course ...

This commit is contained in:
Gered 2016-05-19 18:08:46 -04:00
parent 74fa65feaf
commit f38dbcb73e

View file

@ -8,9 +8,9 @@
as the client/server messaging backend. should be called once on page load before as the client/server messaging backend. should be called once on page load before
browserchannel is initialized." browserchannel is initialized."
[] []
(swap! client/send-fn (reset! client/send-fn
(fn [data] (fn [data]
(browserchannel/send-data! data)))) (browserchannel/send-data! data))))
(def middleware (def middleware
"clj-browserchannel client-side event middleware. this should be included in the "clj-browserchannel client-side event middleware. this should be included in the