Skip to content

Commit 051482a

Browse files
authored
Ready cupertino_http for release with WebSocket support (#1158)
1 parent 988b4d4 commit 051482a

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

pkgs/cupertino_http/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
## 1.3.1-wip
1+
## 1.4.0
2+
3+
* **Experimental** support for the `package:web_socket` `WebSocket` interface.
24

35
## 1.3.0
46

pkgs/cupertino_http/lib/src/cupertino_web_socket.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ class ConnectionException extends WebSocketException {
2222

2323
/// A [WebSocket] implemented using the
2424
/// [NSURLSessionWebSocketTask API](https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask).
25+
///
26+
/// NOTE: the [WebSocket] interface is currently experimental and may change in
27+
/// the future.
2528
class CupertinoWebSocket implements WebSocket {
2629
/// Create a new WebSocket connection using the
2730
/// [NSURLSessionWebSocketTask API](https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask).
@@ -31,6 +34,9 @@ class CupertinoWebSocket implements WebSocket {
3134
/// If provided, the [protocols] argument indicates that subprotocols that
3235
/// the peer is able to select. See
3336
/// [RFC-6455 1.9](https://datatracker.ietf.org/doc/html/rfc6455#section-1.9).
37+
///
38+
/// NOTE: the [WebSocket] interface is currently experimental and may change
39+
/// in the future.
3440
static Future<CupertinoWebSocket> connect(Uri url,
3541
{Iterable<String>? protocols, URLSessionConfiguration? config}) async {
3642
if (!url.isScheme('ws') && !url.isScheme('wss')) {

pkgs/cupertino_http/pubspec.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
name: cupertino_http
2-
version: 1.4.0-wip
3-
publish_to: none # Do not merge with this here!
4-
2+
version: 1.4.0
53
description: >-
64
A macOS/iOS Flutter plugin that provides access to the Foundation URL
75
Loading System.
@@ -17,8 +15,7 @@ dependencies:
1715
flutter:
1816
sdk: flutter
1917
http: ^1.2.0
20-
web_socket:
21-
path: ../web_socket
18+
web_socket: ^0.1.0
2219

2320
dev_dependencies:
2421
dart_flutter_team_lints: ^2.0.0

pkgs/web_socket_conformance_tests/pubspec.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ dependencies:
1515
dart_style: ^2.3.4
1616
stream_channel: ^2.1.2
1717
test: ^1.24.0
18-
web_socket:
19-
path: ../web_socket
18+
web_socket: ^0.1.0
2019

2120
dev_dependencies:
2221
dart_flutter_team_lints: ^2.0.0

0 commit comments

Comments
 (0)