Skip to content

feat: track IPC events sent from main to service worker #273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: next
Choose a base branch
from

Conversation

hitarth-gg
Copy link
Collaborator

@hitarth-gg hitarth-gg commented Jul 23, 2025

This PR:

  • Enables Devtron to track IPC events sent from the main process to the service workers along with the their scope and versionId.
image

@hitarth-gg hitarth-gg changed the title feat: track IPC events going from main to service worker feat: track IPC events sent from main to service worker Jul 23, 2025
Comment on lines +141 to +143
} else if (details.runningStatus === 'stopped') {
isInstalledSet.delete(details.versionId);
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: once a service worker is stopped and then restarted will it's versionId change to a new one ? If not then this can cause .send to be patched more than once which is problematic.
If versionId remains the same, I can probably remove these 3 lines to fix this issue.

@hitarth-gg hitarth-gg marked this pull request as ready for review July 24, 2025 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant