mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 02:47:36 +00:00
2917c1cb8f
The WebSocket abstract class was changed to allow an optional parameter called customClient that takes in a HTTPClient and passes it to the WebSocket Implementation. The WebSocket implementation takes the customClient, checks if its null, if its not null, it uses the customClient in place of the static HTTPClient that the WebSocket Implementation offers. This custom client does not override the static HTTPClient, so all previous functionality remains the same when the customClient is not present. TEST=testStaticClientUserAgentStaysTheSame() in web_socket_test.dart in standalone_2/standalone TEST=new SecurityConfiguration(secure: true).runTests(); in web_socket_error_test.dart and web_socket_test.dart in standalone_2/standalone Bug: https://github.com/dart-lang/sdk/issues/34284 Closes https://github.com/dart-lang/sdk/pull/46040 https://github.com/dart-lang/sdk/pull/46040 GitOrigin-RevId: 58fed38baa606a8a492d3729190afa5009cc2409 Change-Id: I042b1e3fa7a4effed076c0deeec1f86af0dfe26d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200262 Reviewed-by: Alexander Aprelev <aam@google.com> Reviewed-by: Siva Annamalai <asiva@google.com> Commit-Queue: Alexander Aprelev <aam@google.com> |
||
---|---|---|
.. | ||
bin | ||
lib | ||
api_readme.md | ||
BUILD.gn |