web-extension-bridge
Web application half of the bridge sample. Publish to the extension (FR1) and answer requests from it (FR2).
Waiting for extension…
Push to the extension
Sends publish('message', { payload }). Fire and forget: the extension
buffers it until the popup is opened.
Answer requests from the extension
The snapshot handler reads this field when the request arrives, so the
popup always sees the current value rather than a stale copy.
- Requests served
- 0
- Last request topic
- —
Handlers registered by this page
snapshot— returns the shared value, a timestamp and the counter.echo— returns the request payload, validated as an object.boom— always throws, so the popup showsHANDLER_ERROR.slow— never answers, so the popup showsTIMEOUT.