Cherry.Serve.Reloader (cherry v0.6.1)

Copy Markdown View Source

Live-reload fanout: SSE connections register here; the watcher broadcasts after every rebuild. A duplicate-key Registry is the whole pubsub.

Summary

Functions

Notifies every subscribed connection that the site was rebuilt.

The registry child spec name.

Registers the calling process for reload notifications.

Functions

broadcast()

@spec broadcast() :: :ok

Notifies every subscribed connection that the site was rebuilt.

registry()

@spec registry() :: module()

The registry child spec name.

subscribe()

@spec subscribe() :: :ok

Registers the calling process for reload notifications.