Skip to content

Commit

Permalink
enhance(sync): reduce ws ping messages
Browse files Browse the repository at this point in the history
  • Loading branch information
RCmerci authored and andelf committed Dec 30, 2022
1 parent adcfc09 commit 7c76dcb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/frontend/fs/sync.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@
(do (<! (timeout 1000))
(recur))
(do (.send ws "PING")
(<! (timeout 30000))
;; aws apigateway websocket
;; Idle Connection Timeout: 10min
(<! (timeout (* 5 60 1000)))
(recur)))))))

(defn- ws-stop! [*ws]
Expand Down

0 comments on commit 7c76dcb

Please sign in to comment.