taoensso / sente

Realtime web comms library for Clojure/Script
https://www.taoensso.com/sente
Eclipse Public License 1.0
1.73k stars 193 forks source link

;; Firefox calls "onclose" while unloading, ;; Ref. http://goo.gl/G5BYbn: (if (:clean? last-ws-close) (do (debugf "Clean WebSocket close, will not attempt reconnect") (swap-chsk-state! chsk #(assoc % :last-ws-close last-ws-close))) (do #384

Closed Aatranquyen150397 closed 3 years ago

Aatranquyen150397 commented 3 years ago
                    ;; Firefox calls "onclose" while unloading,
                    ;; Ref. http://goo.gl/G5BYbn:
                    (if (:clean? last-ws-close)
                      (do
                        (debugf "Clean WebSocket close, will not attempt reconnect")
                        (swap-chsk-state! chsk
                          #(assoc % :last-ws-close last-ws-close)))
                      (do
Aatranquyen150397 commented 3 years ago
                    ;; Firefox calls "onclose" while unloading,
                    ;; Ref. http://goo.gl/G5BYbn:
                    (if (:clean? last-ws-close)
                      (do
                        (debugf "Clean WebSocket close, will not attempt reconnect")
                        (swap-chsk-state! chsk
                          #(assoc % :last-ws-close last-ws-close)))
                      (do
ptaoussanis commented 3 years ago

Hi there!

I'm afraid that it isn't clear what the purpose of this issue is - would you please clarify?

Thanks