Skip to content

Don't connect the SSE API when running embedded - #9020

Merged
DanTup merged 1 commit into
flutter:masterfrom
DanTup:disable-sse-embedded
Mar 11, 2025
Merged

DanTup merged 1 commit into
flutter:masterfrom
DanTup:disable-sse-embedded

Conversation

@DanTup

@DanTup DanTup commented Mar 11, 2025

Copy link
Copy Markdown
Contributor

This prevents the SSE connection from being connected when running embedded. DevTools was already capable of running without this connection (since it discards exceptions connecting, and the server may be unavailable in some contexts).

It doesn't fix any issues, but it increases the number of embedded DevTools pages that can be shown in VS Code before they stop working (before this fix, I couldn't open every page, but with this change I can open them all and should have a few connections to spare).

See #8298
See #8763

I've verified the connection is still being made when running in the browser, but not when embedded.

@kenzieschmoll I don't know if we have a good way to test something like this (I think there were some with the server that moved to the SDK).

@DanTup
DanTup merged commit 00ec296 into flutter:master Mar 11, 2025
@DanTup
DanTup deleted the disable-sse-embedded branch March 11, 2025 18:41
@DanTup

DanTup commented Mar 12, 2025

Copy link
Copy Markdown
Contributor Author

I didn't notice when testing this that the DTD connection was missing in this mode - I've opened #9023 with some notes about the issue. If we can agree a fix that's fairly simple I can just fix it, otherwise I can revert this in the meantime.

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.

2 participants