datastar/sdk/clojure/adapter-ring
JeremS 65a301da9e
Fixing issue #571 / minor changes, improvements (#590)
* 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
2025-02-04 08:15:06 -06:00
..
src/main/starfederation/datastar/clojure/adapter Fixing issue #571 / minor changes, improvements (#590) 2025-02-04 08:15:06 -06:00
README.md Fixing issue #571 / minor changes, improvements (#590) 2025-02-04 08:15:06 -06:00
deps.edn Fixing issue #571 / minor changes, improvements (#590) 2025-02-04 08:15:06 -06:00

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.