-
Notifications
You must be signed in to change notification settings - Fork 112
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
Simplify the web_socket_channel implementation #340
Comments
This should actually fix the issue I outlined in #237 (comment). Looking forward to seeing this land. |
…_web_socket and web_socket_channel Bug:dart-lang/web_socket_channel#340 Change-Id: I3dff79a66876005eb77a33f1f82f8ac5d19e764f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/362192 Commit-Queue: Brian Quinlan <[email protected]> Reviewed-by: Ben Konyi <[email protected]> Reviewed-by: Nate Bosch <[email protected]>
Should there be a corresponding task for |
@NotTsunami Is |
I think It seems that However, Other than this, the following patch seems to be enough to fix the dependency issue in https://github.com/dart-lang/build. --- a/build_daemon/pubspec.yaml
+++ b/build_daemon/pubspec.yaml
@@ -15,10 +15,10 @@ dependencies:
path: ^1.8.0
pool: ^1.5.0
shelf: ^1.0.0
- shelf_web_socket: ^1.0.0
+ shelf_web_socket: ">=1.0.0 <3.0.0"
stream_transform: ^2.0.0
watcher: ^1.0.0
- web_socket_channel: ^2.0.0
+ web_socket_channel: ">=2.0.0 <4.0.0"
dev_dependencies:
analyzer: '>=3.4.0 <7.0.0'
--- a/build_runner/pubspec.yaml
+++ b/build_runner/pubspec.yaml
@@ -39,12 +39,12 @@ dependencies:
pub_semver: ^2.0.0
pubspec_parse: ^1.0.0
shelf: ^1.0.0
- shelf_web_socket: ^1.0.0
+ shelf_web_socket: ">=1.0.0 <3.0.0"
stack_trace: ^1.10.0
stream_transform: ^2.0.0
timing: ^1.0.0
watcher: ^1.0.0
- web_socket_channel: ^2.0.0
+ web_socket_channel: ">=2.0.0 <4.0.0"
yaml: ^3.0.0
dev_dependencies: |
@bc-lee Is this blocking you somehow? Could you file an issue with |
There are two components:
web_socket_channel
in terms ofpackage:web_socket
WebSocketChannel
constructor (the only known usage is inpackage:shelf_web_socket
).Steps:
package:shelf_web_socket
to not rely on theWebSocketChannel
constructor PRpackage:web_socket_channel
:package:web_socket
PRWebSocketChannel
constructor and make that class aninterface
package:web_socket_channel
3.x (branch: v3_release) PRpackage:shelf_web_socket
to acceptpackage:web_socket_channel
3.x (branch: v2_release) PRpackage:shelf_web_socket
2.xpackage:test
to acceptpackage:web_socket_channel
3.x andpackage:shelf_web_socket
2.x (branch: web_socket_version_constraints) PRpackage:test
The text was updated successfully, but these errors were encountered: