update disconnection reason strings to be a bit more descriptive
This commit is contained in:
parent
337b1faf27
commit
4e63631854
|
@ -555,7 +555,7 @@
|
||||||
(defn disconnect!
|
(defn disconnect!
|
||||||
[session-id & [reason]]
|
[session-id & [reason]]
|
||||||
(if-let [session-agent (get @sessions session-id)]
|
(if-let [session-agent (get @sessions session-id)]
|
||||||
(send-off session-agent close nil (or reason "Disconnected"))))
|
(send-off session-agent close nil (or reason "Client disconnected by server"))))
|
||||||
|
|
||||||
;; wrap the respond function from :reactor with the proper
|
;; wrap the respond function from :reactor with the proper
|
||||||
;; responsewrapper for either IE or other clients
|
;; responsewrapper for either IE or other clients
|
||||||
|
@ -659,7 +659,7 @@
|
||||||
;; this is a request made in an img tag
|
;; this is a request made in an img tag
|
||||||
(do ;;end session
|
(do ;;end session
|
||||||
(when session-agent
|
(when session-agent
|
||||||
(send-off session-agent close req "Disconnected"))
|
(send-off session-agent close req "Client disconnected"))
|
||||||
{:status 200
|
{:status 200
|
||||||
:headers (:headers options)
|
:headers (:headers options)
|
||||||
:body ""}
|
:body ""}
|
||||||
|
|
Reference in a new issue