Traffic & Event Model
The browser events emitted by loader-based installs and how to observe or intercept traffic safely.
- Last reviewed
Traffic & Event Model
Loader-based installs emit browser events with the getuserfeedback: prefix.
Traffic interception
getuserfeedback:traffic fires whenever the loader forwards a public command,
telemetry envelope, or app event across the host boundary.
Listeners can:
- inspect the direction metadata and payload
- replace
event.detail.payloadbefore delivery - call
event.preventDefault()to veto the payload entirely
Use this carefully. It sits in the middle of command delivery.
Stable host events
The public host event surface includes:
getuserfeedback:trafficgetuserfeedback:loader:errorgetuserfeedback:instance:flow:state-changedgetuserfeedback:instance:flow:state-changed:instancegetuserfeedback:instance:command:settledgetuserfeedback:instance:handle:invalidatedgetuserfeedback:instance:command:unsupportedgetuserfeedback:instance:open:requestedgetuserfeedback:instance:errorgetuserfeedback:instance:app-event
These are the events to build against. Do not invent private navigation or host context events on top of internal runtime behavior.