Live-reload dev server composing bushka.server + bushka.watch — a JVM
mirror of bun.live-server. Static file serving with reload-script
injection, debounced change broadcasts (CSS-only → refreshcss, else
reload), and a silent-watcher-death health probe. See docs/MIRROR.md.
Live-reload dev server composing `bushka.server` + `bushka.watch` — a JVM mirror of `bun.live-server`. Static file serving with reload-script injection, debounced change broadcasts (CSS-only → `refreshcss`, else `reload`), and a silent-watcher-death health probe. See `docs/MIRROR.md`.
(css-path? path)True when path ends in .css (case-insensitive).
True when path ends in `.css` (case-insensitive).
(reload-message css-only? no-css-inject)Broadcast message for a change batch: "refreshcss" for a CSS-only batch
with injection enabled, otherwise "reload".
Broadcast message for a change batch: `"refreshcss"` for a CSS-only batch with injection enabled, otherwise `"reload"`.
(start!
{:keys [root port open wait ignore no-css-inject stat-interval-ms]
:or {port 0 open true wait 100 no-css-inject false stat-interval-ms 5000}})Live-reload dev server. opts: :root (req), :port (0), :open (true), :wait (debounce ms, 100), :ignore, :no-css-inject, :stat-interval-ms (health-probe ms, 5000; 0 disables). Watches :root only (bun's :watch alternate-dirs option is intentionally not mirrored — see MIRROR.md). Returns the server handle merged with {:watcher :root :scheduler :pending :stat-sched}.
Live-reload dev server. opts: :root (req), :port (0), :open (true),
:wait (debounce ms, 100), :ignore, :no-css-inject,
:stat-interval-ms (health-probe ms, 5000; 0 disables). Watches :root only
(bun's :watch alternate-dirs option is intentionally not mirrored — see MIRROR.md).
Returns the server handle merged with
{:watcher :root :scheduler :pending :stat-sched}.(stop! {:keys [watcher scheduler stat-sched] :as handle})Stops the server, watcher, debounce scheduler, and health probe. Returns nil.
Stops the server, watcher, debounce scheduler, and health probe. Returns nil.
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 |