-
-
Save tobias/95d9f38b6960bdd2c433 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* `:on-close` - `(fn [ch {:keys [reason code message]}] ...)` - | |
called for *any* close, including a call to [[close]], but will only | |
be invoked once. | |
`reason` will be one of: | |
* :complete - the channel was closed normally | |
* :gone - the client disappeared | |
* :error - an error occured that forced closure | |
* :shutdown - the client or server is shutting down (WebSocket only) | |
* :other - some other unknown reason (WebSocket only) | |
`code` will be the numeric closure code if the channel is a | |
WebSocket, and can be inspected if you need more granularity | |
that provided by `reason`. | |
`message` will be the optional text for the closure. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment