Websocket connect, clear error response #103738
Labels
c: new feature
Nothing broken; request for a new capability
c: proposal
A detailed proposal for a change to Flutter
dependency: dart:io
Issue in 'dart:io' library
dependency: dart
Dart team may need to help us
engine
flutter/engine repository. See also e: labels.
P3
Issues that are less important to the Flutter project
team-engine
Owned by Engine team
triaged-engine
Triaged by Engine team
First of all, want to say thank you all for the impressive and powerful framework!
I like it! Keep rocking!
Issue:
Evvironment
flutter 3.0.0 (latest)
dart 2.17.0 (latest)
Use case
When connecting to WebSocket there is no way to understand why it's failing during updating to WebSocket.
` WebSocketException: Connection to 'https://....../sockets#' was not upgraded to web socket
No response code.
No response body.
Just hardcoded error message each time.
What will be if I want to have a different logic based on the server error code?
All existing WebSockets for various platforms has this option.
Proposal
To have a root cause in WebSocketException or even create a separate WebSocketUpgradeException
Improve the error exposing like:
Thank you in advance!
BTW I haven't found any way how to contribute to the sky_engine package. Cloud you also advise on that?
The text was updated successfully, but these errors were encountered: