File tree Expand file tree Collapse file tree 4 files changed +20
-3
lines changed Expand file tree Collapse file tree 4 files changed +20
-3
lines changed Original file line number Diff line number Diff line change
1
+ ## 1.5.2-wip
2
+
1
3
## 1.5.1
2
4
3
5
* Allow ` 1000 ` as a ` code ` argument in ` CupertinoWebSocket.close ` .
Original file line number Diff line number Diff line change @@ -23,8 +23,9 @@ class ConnectionException extends WebSocketException {
23
23
/// A [WebSocket] implemented using the
24
24
/// [NSURLSessionWebSocketTask API] (https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask).
25
25
///
26
- /// NOTE: the [WebSocket] interface is currently experimental and may change in
27
- /// the future.
26
+ /// > [!NOTE]
27
+ /// > The [WebSocket] interface is currently experimental and may change in the
28
+ /// > future.
28
29
///
29
30
/// ```dart
30
31
/// import 'package:cupertino_http/cupertino_http.dart';
@@ -47,6 +48,11 @@ class ConnectionException extends WebSocketException {
47
48
/// });
48
49
/// }
49
50
/// ```
51
+ ///
52
+ /// > [!TIP]
53
+ /// > [`AdapterWebSocketChannel`] (https://pub.dev/documentation/web_socket_channel/latest/adapter_web_socket_channel/AdapterWebSocketChannel-class.html)
54
+ /// > can be used to adapt a [CupertinoWebSocket] into a
55
+ /// > [`WebSocketChannel`] (https://pub.dev/documentation/web_socket_channel/latest/web_socket_channel/WebSocketChannel-class.html).
50
56
class CupertinoWebSocket implements WebSocket {
51
57
/// Create a new WebSocket connection using the
52
58
/// [NSURLSessionWebSocketTask API] (https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask).
Original file line number Diff line number Diff line change 1
1
name : cupertino_http
2
- version : 1.5.1
2
+ version : 1.5.2-wip
3
3
description : >-
4
4
A macOS/iOS Flutter plugin that provides access to the Foundation URL
5
5
Loading System.
Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ import 'jni/bindings.dart' as bindings;
15
15
/// [WebSocket] (https://square.github.io/okhttp/5.x/okhttp/okhttp3/-web-socket/index.html)
16
16
/// API.
17
17
///
18
+ /// > [!NOTE]
19
+ /// > The [WebSocket] interface is currently experimental and may change in the
20
+ /// > future.
21
+ ///
18
22
/// Example usage of [OkHttpWebSocket] :
19
23
/// ```dart
20
24
/// import 'package:ok_http/ok_http.dart';
@@ -37,6 +41,11 @@ import 'jni/bindings.dart' as bindings;
37
41
/// });
38
42
/// }
39
43
/// ```
44
+ ///
45
+ /// > [!TIP]
46
+ /// > [`AdapterWebSocketChannel`] (https://pub.dev/documentation/web_socket_channel/latest/adapter_web_socket_channel/AdapterWebSocketChannel-class.html)
47
+ /// > can be used to adapt a [OkHttpWebSocket] into a
48
+ /// > [`WebSocketChannel`] (https://pub.dev/documentation/web_socket_channel/latest/web_socket_channel/WebSocketChannel-class.html).
40
49
class OkHttpWebSocket implements WebSocket {
41
50
late bindings.OkHttpClient _client;
42
51
late final bindings.WebSocket _webSocket;
You can’t perform that action at this time.
0 commit comments