Fix WebSocket protocol upgrade in DWDS injected client (#2868) Fixes an issue where WebSocket URLs were not upgraded from ws:// to wss:// when the application is served over HTTPS (window.location.protocol == 'https:') on non-localhost hosts. Previously, _fixProtocol checked `window.location.protocol == 'wss:'`, which is never true for browser pages, leaving ws:// connections unchanged and causing mixed-content blocking in browsers. Extracts the logic into an internal utility function `fixProtocol` and adds unit tests.
| Package | Description | Version |
|---|---|---|
| dwds | A service that proxies between the Chrome debug protocol and the Dart VM service protocol. | |
| frontend_server_client | Client code to start and interact with the frontend_server compiler from the Dart SDK. | |
| webdev | A CLI for Dart web development. Provides an easy and consistent set of features for users and tools to build and deploy web applications with Dart. |
For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.