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+
13## 1.5.1
24
35* 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 {
2323/// A [WebSocket] implemented using the
2424/// [NSURLSessionWebSocketTask API] (https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask).
2525///
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.
2829///
2930/// ```dart
3031/// import 'package:cupertino_http/cupertino_http.dart';
@@ -47,6 +48,11 @@ class ConnectionException extends WebSocketException {
4748/// });
4849/// }
4950/// ```
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).
5056class CupertinoWebSocket implements WebSocket {
5157 /// Create a new WebSocket connection using the
5258 /// [NSURLSessionWebSocketTask API] (https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask).
Original file line number Diff line number Diff line change 11name : cupertino_http
2- version : 1.5.1
2+ version : 1.5.2-wip
33description : >-
44 A macOS/iOS Flutter plugin that provides access to the Foundation URL
55 Loading System.
Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ import 'jni/bindings.dart' as bindings;
1515/// [WebSocket] (https://square.github.io/okhttp/5.x/okhttp/okhttp3/-web-socket/index.html)
1616/// API.
1717///
18+ /// > [!NOTE]
19+ /// > The [WebSocket] interface is currently experimental and may change in the
20+ /// > future.
21+ ///
1822/// Example usage of [OkHttpWebSocket] :
1923/// ```dart
2024/// import 'package:ok_http/ok_http.dart';
@@ -37,6 +41,11 @@ import 'jni/bindings.dart' as bindings;
3741/// });
3842/// }
3943/// ```
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).
4049class OkHttpWebSocket implements WebSocket {
4150 late bindings.OkHttpClient _client;
4251 late final bindings.WebSocket _webSocket;
You can’t perform that action at this time.
0 commit comments