Liking cljdoc? Tell your friends :D

bushka.live-server

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`.
raw docstring

css-path?clj

(css-path? path)

True when path ends in .css (case-insensitive).

True when path ends in `.css` (case-insensitive).
raw docstring

reload-messageclj

(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"`.
raw docstring

start!clj

(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}.
raw docstring

stop!clj

(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.
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