We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 615aa7f + 9e19a2d commit e8f119aCopy full SHA for e8f119a
src/clj/web/ws.clj
@@ -19,7 +19,8 @@
19
20
(let [chsk-server (sente/make-channel-socket-server!
21
(get-sch-adapter)
22
- {:user-id-fn (fn [ring-req]
+ {:ws-kalive-ms 2500
23
+ :user-id-fn (fn [ring-req]
24
(or (-> ring-req :session :uid)
25
(:client-id ring-req)))})
26
{:keys [ch-recv send-fn connected-uids
src/cljs/nr/ws.cljs
@@ -16,6 +16,7 @@
16
"/chsk"
17
?csrf-token
18
{:type (if (get-in @app-state [:options :disable-websockets]) :ajax :auto)
+ :ws-kalive-ms 2500 ;; note - supposedly this will help SEA/LATAM connections
:wrap-recv-evs? false})]
(def chsk chsk)
(def ch-chsk ch-recv)
0 commit comments