ClojureScript support for the tap middleware.
The JVM add-tap' can't seetap>' in a JS runtime, so for a ClojureScript
REPL we load a runtime helper (cider.nrepl.cljs.tap') that buffers tapped values, and poll it viaeval' - the same approach the cljs test middleware
uses to await async tests.
Streaming only: a tapped ClojureScript value lives in the JS runtime, so it can't be handed to the JVM inspector. So cljs tap entries carry no `idx' and aren't inspectable (a later phase could inspect them in the runtime).
ClojureScript support for the tap middleware. The JVM `add-tap' can't see `tap>' in a JS runtime, so for a ClojureScript REPL we load a runtime helper (`cider.nrepl.cljs.tap') that buffers tapped values, and poll it via `eval' - the same approach the cljs test middleware uses to await async tests. Streaming only: a tapped ClojureScript value lives in the JS runtime, so it can't be handed to the JVM inspector. So cljs tap entries carry no `idx' and aren't inspectable (a later phase could inspect them in the runtime).
(handle handler msg)Handle a tap subscribe/unsubscribe op against a ClojureScript REPL.
Replies on its own (the stream and the terminal :done' are sent here, not viawith-safe-transport').
Handle a tap subscribe/unsubscribe op against a ClojureScript REPL. Replies on its own (the stream and the terminal `:done' are sent here, not via `with-safe-transport').
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 |