V2.2.2 alpha#128
Open
ioa747 wants to merge 15 commits into
Open
Conversation
Added configurable message throttling for JavaScript to AutoIt communication and updated key features and enhancements.
Added details about configurable message throttling in v2.2.2-alpha.
Added a section about the new configurable message throttling feature in version 2.2.2-alpha.
Added support for dynamic throttling in the WebView2 test, allowing phase transitions and message counting. Updated the HTML structure for better user interaction and feedback.
Added as a new parameter to the signature of `_NetWebView2_CreateManager` `_NetWebView2_CreateManager($sUserAgent = "", $s_fnEventPrefix = "", $s_AddBrowserArgs = "", $bVerbose = False, $iThrottlingIntervalMs = 20)` $iThrottlingIntervalMs - [optional] an integer value. Sets the JS-to-AutoIt message throttling interval in ms. Default is 20. Set to 0 to disable throttling.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
Thanks for your effort and interest 💛 in improving the project. It's very appreciated.
Description
Provide a configurable throttling mechanism for messages sent from JavaScript to AutoIt via the WebView2 bridge to prevent message loss when throttling is too restrictive for certain use cases, while keeping safety defaults.
🔗 Linked GitHub Issues
(#127)
Closes #\127
📋 What is the current behavior?
The loss of messages from JavaScript to AutoIt message due to the tight throttling mechanism
🚀 What is the new behavior?
Implement the ThrottlingIntervalMs property on the manager class, forwarding to the bridge object
ThrottlingIntervalMs[Property]: Gets or sets the throttling interval in milliseconds for messages sent from JavaScript to AutoIt.Set to 0 to disable throttling entirely.
Default is 20 ms.
Type of changes
Breaking changes 🔥
How and where was this tested?
🖥️ Describe where you tested your changes
System:
Context:
NetJson.ParserNetWebView2.Manager - WebView2NetWebView2.Manager - Bridge🔬 Describe how you tested your changes
Checklist
Additional context
Added as a new parameter to the signature of
_NetWebView2_CreateManager_NetWebView2_CreateManager($sUserAgent = "", $s_fnEventPrefix = "", $s_AddBrowserArgs = "", $bVerbose = False, $iThrottlingIntervalMs = 20)$iThrottlingIntervalMs - [optional] an integer value.
Sets the JS-to-AutoIt message throttling interval in ms.
Default is 20.
Set to 0 to disable throttling.
Screenshots
Note to reviewers