1
1
[ ![ pub package] ( https://img.shields.io/pub/v/web_socket.svg )] ( https://pub.dev/packages/web_socket )
2
2
[ ![ package publisher] ( https://img.shields.io/pub/publisher/web_socket.svg )] ( https://pub.dev/packages/web_socket/publisher )
3
3
4
- Any easy-to-use library for communicating with
4
+ An easy-to-use library for communicating with
5
5
[ WebSockets] ( https://en.wikipedia.org/wiki/WebSocket ) that has multiple
6
6
implementations.
7
7
@@ -12,19 +12,18 @@ The goal of `package:web_socket` is to provide a simple, well-defined
12
12
consistent behavior across implementations.
13
13
14
14
[ ` package:web_socket_channel ` ] ( https://pub.dev/documentation/web_socket_channel/ )
15
- is currently the most popular WebSocket package. It has
16
- two implementations, one based on ` package:web ` and the other based on
17
- ` dart:io ` ` WebSocket ` . But those implementations do not have consistent
18
- behavior.
15
+ is the most popular WebSocket package but it is complex and does not have
16
+ consistent behavior across implementations.
19
17
20
18
[ ` WebSocket ` ] ( https://pub.dev/documentation/web_socket/latest/web_socket/WebSocket-class.html )
21
- currently has three implementations (with more on the way) that
22
- all pass the same set of
19
+ currently has four implementations that all pass the same set of
23
20
[ conformance tests] ( https://github.com/dart-lang/http/tree/master/pkgs/web_socket_conformance_tests ) :
24
21
25
22
* [ ` BrowserWebSocket ` ] ( https://pub.dev/documentation/web_socket/latest/browser_web_socket/BrowserWebSocket-class.html )
26
23
* [ ` CupertinoWebSocket ` ] ( https://pub.dev/documentation/cupertino_http/latest/cupertino_http/CupertinoWebSocket-class.html )
27
24
* [ ` IOWebSocket ` ] ( https://pub.dev/documentation/web_socket/latest/io_web_socket/IOWebSocket-class.html )
25
+ * [ ` OkHttpWebSocket ` ] ( https://pub.dev/documentation/ok_http/latest/ok_http/OkHttpWebSocket-class.html )
26
+ (currently experimental)
28
27
29
28
## Using
30
29
@@ -50,18 +49,3 @@ void main() async {
50
49
socket.sendText('Hello Dart WebSockets! 🎉');
51
50
}
52
51
```
53
-
54
- ## Status: experimental
55
-
56
- ** NOTE** : This package is currently experimental and published under the
57
- [ labs.dart.dev] ( https://dart.dev/dart-team-packages ) pub publisher in order to
58
- solicit feedback.
59
-
60
- For packages in the labs.dart.dev publisher we generally plan to either graduate
61
- the package into a supported publisher (dart.dev, tools.dart.dev) after a period
62
- of feedback and iteration, or discontinue the package. These packages have a
63
- much higher expected rate of API and breaking changes.
64
-
65
- Your feedback is valuable and will help us evolve this package. For general
66
- feedback, suggestions, and comments, please file an issue in the
67
- [ bug tracker] ( https://github.com/dart-lang/http/issues ) .
0 commit comments