# `StarView.Page.Plug`
[🔗](https://github.com/Neophen/star_view/blob/v0.7.0/lib/star_view/page/plug.ex#L2)

Drives explicitly routed `StarView.Page` callbacks.

GET mounts and renders the page. Events fetch bounded object signals before
SSE and use the shared dispatcher. POST streaming uses `StarView.Stream`'s
fixed-deadline probes and generation-aware ownership.

Authentication belongs in the route pipeline; every event must authorize its
own operation. Mount is not called for events or stream connections.
`handle_disconnect/1`, when defined, runs once after stream claim release,
including raised callbacks. It receives the latest completed callback conn.
`handle_refresh/1`, when defined, becomes the stream's coalesced `:render`
callback with the page's `:refresh_interval`.

Set `config :star_view, debug_errors: true` in development to relay event
exceptions to the browser console. Production should leave this disabled.

