-
Notifications
You must be signed in to change notification settings - Fork 383
Support the NSURLSession WebSocket API #921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support the NSURLSession WebSocket API #921
Conversation
|
||
/// Sends a single WebSocket message. | ||
/// | ||
/// Throws an [Error] on failure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Strictly speaking, it completes the Future with an error. completeError
only becomes a throw when the user awaits the Future. If they use the then
method instead, they can add an onError
handler.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
This reverts commit 981b63b.
…" (dart-lang#931)" This reverts commit fb3b4be.
First step in fixing #916