![]() * Refactor: Ring jetty adapter is now a generic ring adapter Minor changes: - Properly eliding SSE retry duration - Added a small utility in the main api. - Added a new option to the ->sse-response functions to support modifying the HTTP response status. - Fixed typos and errors in the docs. - using consts version number. - Prepared tests for rj9a - Properly killing webrivers when shutting down tests * Docs: fixing the fixed typo |
||
---|---|---|
.. | ||
src/main/starfederation/datastar/clojure/adapter | ||
README.md | ||
deps.edn |
README.md
Datastar ring adapter
Datastar sdk adapter for ring. It is currently tested with ring-jetty-adapter
This sdk adapter is based on the ring.core.protocols/StreamableResponseBody
protocol.
Any ring adapter using this protocol should work with this library.
Installation
For now the SDK and adapters are distributed as git dependencies using a deps.edn
file.
{datastar/sdk {:git/url "https://github.com/starfederation/datastar/tree/develop"
:git/sha "LATEST SHA"
:deps/root "sdk/clojure/sdk"}
datastar/ring {:git/url "https://github.com/starfederation/datastar/tree/develop"
:git/sha "LATEST SHA"
:deps/root "sdk/clojure/adapter-ring"}}
[!important]
- Replace
LATEST_SHA
in the git coordinates below by the actual latest commit sha of the repository.- You also need to add a dependency to an actual ring compliant adapter.