diff --git a/IMPLEMENTATION.md b/IMPLEMENTATION.md index 69ea465..3c82ebc 100644 --- a/IMPLEMENTATION.md +++ b/IMPLEMENTATION.md @@ -1,8 +1,9 @@ -# SOMEWHAT OUTDATED (again)! - # Extension Lifetime -A bridge application instance (`statusBridge`) is created to keep track of receivers’ statuses. This is expected to exist throughout the lifetime of the extension and will automatically reconnect if unexpectedly disconnected. +A bridge application instance is created via the StatusManager (`background/StatusManager.ts`) to keep track of receivers’ statuses. The StatusManager emits events `serviceUp`, `serviceDown` and `statusUpdate` containing relevant data. + +This is expected to exist throughout the lifetime of the extension and will automatically reconnect with a 10-second interval if unexpectedly disconnected. + The `shim/content.ts` content script is registered for all pages. It creates an empty `window.chrome` object in the page context since some sites may expect it to exist. It also intercepts any `src` attribute changes on `