enhance(sync): reduce ws ping messages

This commit is contained in:
rcmerci
2022-12-30 14:57:12 +08:00
committed by Andelf
parent adcfc09f0e
commit 7c76dcb2cf

View File

@@ -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]