web_socket_channel
StreamChannel wrappers for WebSockets. Provides a cross-platform WebSocketChannel API, a cross-platform implementation of that API that communicates over an underlying StreamChannel.
3.0.3
9.5M downloads/mo
#31 most downloaded on pub.dev
dart-lang/http
What this package is like to depend on
Last release 1 years ago
17 Apr 2025
Release timing varies
gaps range from 2 weeks to 12 months
Nearly every release is documented
notes for 31 of 31 stable releases
1 version withdrawn
withdrawn after publishing
10 years old
33 releases · first in 2016
0 releases in the last 12 months
see the full history below
Release timeline
33 releases · Mar 2016 to Apr 2025Releases
latest 33-
3.0.317 Apr 2025 -
3.0.222 Jan 2025 -
3.0.116 Jul 2024Release notes
Open source →- Remove unnecessary
dependency_overrides. - Remove obsolete documentation for
WebSocketChannel.new. - Update package
web: '>=0.5.0 <2.0.0'.
- Remove unnecessary
-
3.0.006 May 2024Release notes
Open source →- Require Dart SDK
3.7.0. - Add support for providing custom message when terminating a connection.
Release notes
Open source →- Provide an adapter around
package:web_socketWebSockets and make it the default implementation forWebSocketChannel.connect. - BREAKING: Remove
WebSocketChannelconstructor. - BREAKING: Make
WebSocketChannelanabstract interface. - BREAKING:
IOWebSocketChannel.readywill throwWebSocketChannelExceptioninstead ofWebSocketException.
- Require Dart SDK
-
2.4.508 Apr 2024 -
2.4.415 Feb 2024 -
2.4.308 Jan 2024Release notes
Open source →HtmlWebSocketChannel: Relax the type of the websocket parameter to the constructor in order to mitigate a breaking change introduced in2.4.1.
-
2.4.204 Jan 2024 withdrawn -
2.4.118 Dec 2023Release notes
Open source →- Update the examples to use
WebSocketChannel.readyand clarify thatWebSocketChannel.readyshould be awaited before sending data over theWebSocketChannel. - Mention
readyin the docs forconnect. - Bump minimum Dart version to 3.2.0
- Move to
pkg:webto support WebAssembly compilation.
- Update the examples to use
-
2.4.011 Apr 2023Release notes
Open source →- Add a
customClientparameter to theIOWebSocketChannel.connectfactory, which allows the user to provide a customHttpClientinstance to use for the WebSocket connection - Bump minimum Dart version to 2.15.0
- Add a
-
2.3.011 Jan 2023Release notes
Open source →- Added a Future
readyproperty toWebSocketChannel, which completes when the connection is established - Added a
connectTimeoutparameter to theIOWebSocketChannel.connectfactory, which controls the timeout of the WebSocket Future. - Use platform agnostic code in README example.
- Added a Future
-
2.2.026 Apr 2022Release notes
Open source →- Add
HtmlWebSocketChannel.innerWebSocketgetter to access features not exposed through the sharedWebSocketChannelinterface.
- Add
-
2.1.003 May 2021Release notes
Open source →- Add
IOWebSocketChannel.innerWebSocketgetter to access features not exposed through the sharedWebSocketChannelinterface.
- Add
-
2.0.019 Feb 2021 -
1.2.020 Jan 2021Release notes
Open source →- Add
protocolsargument toWebSocketChannel.connect. See the docs forWebSocket.connet. - Allow the latest crypto release (
3.x).
- Add
-
1.1.011 Oct 2019Release notes
Open source →- Add
WebSocketChannel.connectfactory constructor supporting platform independent creation of WebSockets providing the lowest common denominator of support on dart:io and dart:html.
- Add
-
1.0.1508 Aug 2019 -
1.0.1409 Jul 2019 -
1.0.1322 May 2019 -
1.0.1227 Mar 2019 -
1.0.1126 Mar 2019 -
1.0.1026 Mar 2019Release notes
Open source →-
Fixed links in README.md.
-
Added an example.
-
Fixed analysis lints that affected package score.
-
-
1.0.917 Jul 2018 -
1.0.801 Jun 2018 -
1.0.710 Feb 2018 -
1.0.622 Sep 2017 -
1.0.6-dev22 Sep 2017 pre-releaseNothing published for this version
-
1.0.504 Aug 2017 -
1.0.406 Jun 2016 -
1.0.309 May 2016Release notes
Open source →-
Fix all strong-mode errors and warnings.
-
Fix a bug where
HtmlWebSocketChannel.close()would crash on non-Dartium browsers if the close code and reason weren't provided explicitly.
-
-
1.0.228 Mar 2016 -
1.0.123 Mar 2016 -
1.0.003 Mar 2016