Provides a web interface for interacting with the Clojure environment.
Clean out the dynamic variable bindings stored for web sessions which have expired. Ignores bindings whose keys are not strings, because they do not come from web sessions, but from hosting environments like afterglow-max which do not expire.
(do-eval txt session-key)
Evaluate an expression sent to the web REPL and return the result or an error description. Also supports evaluation of expressions in non-web hosting contexts like afterglow-max by passing in a unique non-String value for
session-key. In such cases the thread local bindings will not be automatically cleaned up, and it is the responsibility of the hosting implementation to call discard-bindings when they are no longer needed.
Route which processes a command typed into the web console.
Route which renders the web console interface.
(with-session session-key & body)
Wrap the body in a session-specific set of dynamic variable bindings.