class

Hwaro::Services::LiveReloadHandler

Inherits HTTP::Handler / Reference / Object

Constants

LIVE_RELOAD_PATH = "/__hwaro_livereload"

Instance methods

call(context)
Source
notify_build_error(message : String)

Push a build-error message so connected browsers can render an overlay. The message is a single line error:<json> so the client side can split on the first colon and parse the rest; using JSON keeps the schema extensible (we may want to add file, line, etc. later) without ad-hoc string parsing.

Source
notify_clear_error

Tell connected browsers to dismiss any error overlay — sent right before a successful reload so the UI clears even if the rebuild produced no other visible change.

Source
notify_reload
Source