Liking cljdoc? Tell your friends :D

bangmod.http-api.retry

The decision half of the stale-token retry, kept free of the ajax transport so it can be unit-tested (:node-test has no XMLHttpRequest, so anything requiring ajax.core is untestable there — the same reason sse.cljc is separate).

The decision half of the stale-token retry, kept free of the ajax transport so it can be
unit-tested (`:node-test` has no XMLHttpRequest, so anything requiring `ajax.core` is
untestable there — the same reason `sse.cljc` is separate).
raw docstring

bangmod.http-api.sse

The testable half of :method :sse: URL building and the a-data state transitions.

It exists as its own namespace because bangmod.http-api.internal requires ajax.core, which touches js/XMLHttpRequest at load time and so may not load under :node-test. Keeping the pure code out of there is what lets the reconnect POLICY be unit-tested even though the transport itself can only be verified in a browser.

The testable half of `:method :sse`: URL building and the `a-data` state transitions.

It exists as its own namespace because `bangmod.http-api.internal` requires `ajax.core`,
which touches `js/XMLHttpRequest` at load time and so may not load under `:node-test`.
Keeping the pure code out of there is what lets the reconnect POLICY be unit-tested even
though the transport itself can only be verified in a browser.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close