Skip to content

Conversation

@bkonyi
Copy link
Collaborator

@bkonyi bkonyi commented Oct 31, 2025

DDS is needed to serve DevTools, so the web socket proxy service should be setup to launch DDS at startup.

This change also includes some significant refactors to reduce the amount of duplicate code that could be shared by the Chrome and web socket service implementations.

DDS is needed to serve DevTools, so the web socket proxy service should
be setup to launch DDS at startup.

This change also includes some significant refactors to reduce the
amount of duplicate code that could be shared by the Chrome and
web socket service implementations.
@bkonyi bkonyi requested a review from jyameo October 31, 2025 18:45
@bkonyi bkonyi marked this pull request as ready for review October 31, 2025 18:45
requestStream: requestStream,
requestSink: requestSink,
dwdsStats: dwdsStats,
clientFuture: clientCompleter.future,
Copy link
Contributor

Choose a reason for hiding this comment

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

here I see that you no longer pass a clientFuture argument. Could this maybe cause an exception when we await the clientFuture downstream (ie. In maybeHandleServiceExtensionRequestImpl)?

I think we should pass the _clientCompleter.future from ChromeDwdsVmClient to the base class when we initialize it. WDYT?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Correct, because it doesn't need to be passed down any further and is only needed for the ChromeDwdsVmClient. If you look at this line, you'll see we still have the completion logic that runs after this initialize() method completes.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, gotcha! Thanks

@jyameo
Copy link
Contributor

jyameo commented Nov 4, 2025

@bkonyi This is a great refactor! I just added a few comment for you to review. Thanks Ben

@bkonyi
Copy link
Collaborator Author

bkonyi commented Nov 4, 2025

Landing as the failures are due to a upstream bug unrelated to this change.

@bkonyi bkonyi merged commit 382ff42 into main Nov 4, 2025
46 of 50 checks passed
@bkonyi bkonyi deleted the websocket_dds_support branch November 4, 2025 20:45
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.

3 participants