Skip to content

API Review: PostWebMessageAsJson and PostWebMessageAsString APIs for workers #110

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
dhveerap opened this issue Mar 19, 2025 · 0 comments
Assignees
Labels
API Review New API Review

Comments

@dhveerap
Copy link

API Review

Title: PostWebMessageAsJson and PostWebMessageAsString APIs for workers

Currently, if developers want to post a message to or from a worker, they must first post a message to the main thread and then post a message to the worker from the main thread. This leads to increased load on the main thread.

The WebView2 team is introducing APIs that allow messages to be posted directly from the Host app to dedicated and service workers, and vice versa. This eliminates the need for the main thread to act as an intermediary, thereby improving app performance and responsiveness.

API Spec: MicrosoftEdge/WebView2Feedback#5170

Please review the pull request and add any feedback you have about the APIs. We appreciate your input and support!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Review New API Review
Projects
None yet
Development

No branches or pull requests

1 participant