sercrod

*network-status

*network-status delegates online/offline and connection state work to sercrod.network_status. current and clear are explicit actions. *network-status.watch starts from activation on clickable elements and auto-starts once on non-clickable elements. Matching n-network-status forms are aliases.

<button type="button" *network-status.current *response="'network'">
  Check network
</button>
<button type="button" *network-status.watch *response="'network'">Watch network</button>
<button type="button" *network-status.clear>Stop watch</button>

Current and watch callback results are written to $network_status and can be placed with *response. The directive value is action options, not the destination data path. Watch ids are stored in $network_status_watch_id for later clear actions.

The adapter owns connection status only. It does not retry requests, schedule uploads, manage WebSocket reconnection, synchronize app state, install service workers, or decide application policy.