Fix for listening to custom streams in DWDS.#2011
Merged
Conversation
Author
Contributor
|
Thanks! This change LGTM (it's what I tested locally and definitely worked), but you may want the opinion of someone more familiar with DWDS than I 🙂 |
Contributor
|
Thanks! Could you add a test case? Here are where we have test cases for the other stream event types: webdev/dwds/test/chrome_proxy_service_test.dart Lines 1973 to 1998 in 85f35d4 |
Collaborator
|
LGTM pending Elliott's approval |
elliette
reviewed
Mar 3, 2023
|
|
||
| test('custom stream', () async { | ||
| expect( | ||
| () => service.streamListen('VM'), |
Contributor
There was a problem hiding this comment.
We handle the VM stream (which is why the test is failing)
elliette
approved these changes
Mar 7, 2023
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.
Fixes Dart-Code/Dart-Code#4414 (comment)
When listening to a stream, DDS does a streamListen on the VMService. If the VMService, doesn't recognize the stream it will respond with
kInvalidParams. This lets DDS know that the stream is nonstandard, so it can handle the events for that stream on it's own.This PR changes DWDS to behave like the VMService in this regard. Fixing this will allow us to streamListen on custom streams using DWDS.