The context hashmap contains:
:session atom:send-message function:close-connection functionThe context hashmap is also used for passing the current message to be processed to the event handlers.
The difference between the context and the session is that the session is a mutable state (an atom) being shared by all the event handlers,
while the context is an immutable Clojure value contains contextual information, like the current message being processed.
You can add your own data in either the context or the session if it makes sense for you,
all the message handlers and the user callbacks are called with the context as their first (and only) argument.
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |