PackageTrack
Sign in Get early access

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 2025
2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release Withdrawn

Releases

latest 33
  1. 3.0.3 17 Apr 2025
    Release notes
    • Support package:web_socket 1.0.0.
    Open source →
    Release notes
    • Support package:web_socket 1.0.0.
    Open source →
  2. 3.0.2 22 Jan 2025
    Release notes
    • Move to dart-lang/http monorepo.
    Open source →
    Release notes
    • Move to dart-lang/http monorepo.
    Open source →
  3. 3.0.1 16 Jul 2024
    Release notes
    • Remove unnecessary dependency_overrides.
    • Remove obsolete documentation for WebSocketChannel.new.
    • Update package web: '>=0.5.0 <2.0.0'.
    Open source →
  4. 3.0.0 06 May 2024
    Release notes
    • Require Dart SDK 3.7.0.
    • Add support for providing custom message when terminating a connection.
    Open source →
    Release notes
    • Provide an adapter around package:web_socket WebSockets and make it the default implementation for WebSocketChannel.connect.
    • BREAKING: Remove WebSocketChannel constructor.
    • BREAKING: Make WebSocketChannel an abstract interface.
    • BREAKING: IOWebSocketChannel.ready will throw WebSocketChannelException instead of WebSocketException.
    Open source →
  5. 2.4.5 08 Apr 2024
    Release notes
    • use secure random number generator for frame masking.
    Open source →
  6. 2.4.4 15 Feb 2024
    Release notes
    • Require Dart ^3.3
    • Require package:web ^0.5.0.
    Open source →
  7. 2.4.3 08 Jan 2024
    Release notes
    • HtmlWebSocketChannel: Relax the type of the websocket parameter to the constructor in order to mitigate a breaking change introduced in 2.4.1.
    Open source →
  8. 2.4.2 04 Jan 2024 withdrawn
    Release notes
    • Allow web: '>=0.3.0 <0.5.0'
    Open source →
  9. 2.4.1 18 Dec 2023
    Release notes
    • Update the examples to use WebSocketChannel.ready and clarify that WebSocketChannel.ready should be awaited before sending data over the WebSocketChannel.
    • Mention ready in the docs for connect.
    • Bump minimum Dart version to 3.2.0
    • Move to pkg:web to support WebAssembly compilation.
    Open source →
  10. 2.4.0 11 Apr 2023
    Release notes
    • Add a customClient parameter to the IOWebSocketChannel.connect factory, which allows the user to provide a custom HttpClient instance to use for the WebSocket connection
    • Bump minimum Dart version to 2.15.0
    Open source →
  11. 2.3.0 11 Jan 2023
    Release notes
    • Added a Future ready property to WebSocketChannel, which completes when the connection is established
    • Added a connectTimeout parameter to the IOWebSocketChannel.connect factory, which controls the timeout of the WebSocket Future.
    • Use platform agnostic code in README example.
    Open source →
  12. 2.2.0 26 Apr 2022
    Release notes
    • Add HtmlWebSocketChannel.innerWebSocket getter to access features not exposed through the shared WebSocketChannel interface.
    Open source →
  13. 2.1.0 03 May 2021
    Release notes
    • Add IOWebSocketChannel.innerWebSocket getter to access features not exposed through the shared WebSocketChannel interface.
    Open source →
  14. 2.0.0 19 Feb 2021
    Release notes
    • Support null safety.
    • Require Dart 2.12.
    Open source →
  15. 1.2.0 20 Jan 2021
    Release notes
    • Add protocols argument to WebSocketChannel.connect. See the docs for WebSocket.connet.
    • Allow the latest crypto release (3.x).
    Open source →
  16. 1.1.0 11 Oct 2019
    Release notes
    • Add WebSocketChannel.connect factory constructor supporting platform independent creation of WebSockets providing the lowest common denominator of support on dart:io and dart:html.
    Open source →
  17. 1.0.15 08 Aug 2019
    Release notes
    • bug fix don't pass protocols parameter to WebSocket.
    Open source →
  18. 1.0.14 09 Jul 2019
    Release notes
    • Updates to handle Socket implements Stream<Uint8List>
    Open source →
  19. 1.0.13 22 May 2019
    Release notes
    • Internal changes for consistency with the Dart SDK.
    Open source →
  20. 1.0.12 27 Mar 2019
    Release notes
    • Allow stream_channel version 2.x
    Open source →
  21. 1.0.11 26 Mar 2019
    Release notes
    • Fixed description in pubspec.

    • Fixed lints in README.md.

    Open source →
  22. 1.0.10 26 Mar 2019
    Release notes
    • Fixed links in README.md.

    • Added an example.

    • Fixed analysis lints that affected package score.

    Open source →
  23. 1.0.9 17 Jul 2018
    Release notes
    • Set max SDK version to <3.0.0.
    Open source →
  24. 1.0.8 01 Jun 2018
    Release notes
    • Remove use of deprecated constant name.
    Open source →
  25. 1.0.7 10 Feb 2018
    Release notes
    • Support the latest dev SDK.
    Open source →
  26. 1.0.6 22 Sep 2017
    Release notes
    • Declare support for async 2.0.0.
    Open source →
  27. 1.0.6-dev 22 Sep 2017 pre-release

    Nothing published for this version

  28. 1.0.5 04 Aug 2017
    Release notes
    • Increase the SDK version constraint to <2.0.0-dev.infinity.
    Open source →
  29. 1.0.4 06 Jun 2016
    Release notes
    • Support crypto 2.0.0.
    Open source →
  30. 1.0.3 09 May 2016
    Release notes
    • 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.

    Open source →
  31. 1.0.2 28 Mar 2016
    Release notes
    • Properly use BASE64 from dart:convert rather than crypto.
    Open source →
  32. 1.0.1 23 Mar 2016
    Release notes
    • Add support for crypto 1.0.0.
    Open source →
  33. 1.0.0 03 Mar 2016
    Release notes
    • First non-experimental release; no semantic changes from version 0.1.6.
    Open source →
    Release notes
    • Initial version
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive