Skip to content

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

Merged
merged 15 commits into from
May 11, 2023

Conversation

brianquinlan
Copy link
Collaborator

@brianquinlan brianquinlan commented May 3, 2023

First step in fixing #916

@github-actions github-actions bot added the package:cupertino_http Issues related to package:cupertino_http label May 3, 2023
@github-actions github-actions bot added the type-infra A repository infrastructure change or enhancement label May 4, 2023
@github-actions github-actions bot removed the type-infra A repository infrastructure change or enhancement label May 4, 2023
@brianquinlan brianquinlan changed the title Cupertino websocket Support the NSURLSession WebSocket API May 4, 2023
@brianquinlan brianquinlan requested review from a-siva, aam and liamappelbe and removed request for a-siva and aam May 8, 2023 15:33

/// Sends a single WebSocket message.
///
/// Throws an [Error] on failure.

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@brianquinlan brianquinlan merged commit 981b63b into dart-lang:master May 11, 2023
brianquinlan added a commit to brianquinlan/http that referenced this pull request May 16, 2023
brianquinlan added a commit that referenced this pull request May 16, 2023
brianquinlan added a commit to brianquinlan/http that referenced this pull request May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:cupertino_http Issues related to package:cupertino_http
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants