PackageTrack
Sign in Get early access

web_socket_client

A simple WebSocket client for Dart which includes automatic reconnection logic.

0.2.1 33K downloads/mo #1797 most downloaded on pub.dev felangel/web_socket_client

What this package is like to depend on

Last release 1 years ago

22 May 2025

Ships fairly regularly

a new release about every 3 months

Nearly every release is documented

notes for 8 of 8 stable releases

Nothing withdrawn

no release was ever pulled

4 years old

11 releases · first in 2022

0 releases in the last 12 months

see the full history below

Release timeline

11 releases · Dec 2022 to May 2025
2023 2024 2025 2026
Release Pre-release

Releases

latest 11
  1. 0.2.1 22 May 2025
    Release notes

    What's Changed

    Full Changelog: v0.2.0...v0.2.1

    Open source →
    Release notes
    • fix: infinite backoff loop by permanently disconnecting and closing the connection if timeout duration is exceeded.
    Open source →
  2. 0.2.0 22 Mar 2025
    Release notes

    What's Changed

    • fix: replace dart.library.html with dart.library.js_interop for wasm compatibility by @sabin26 in #64
    • refactor!: upgrade analysis options and make connection state sealed by @felangel in #72
    • fix: cancel subscription on close or reconnect by @felangel in #73
    • feat: add protocol getter to WebSocket by @Gold872 in #67
    • chore: v0.2.0 by @felangel in #74

    New Contributors

    Full Changelog: v0.1.5...v0.2.0

    Open source →
    Release notes
    • BREAKING refactor: make ConnectionState a sealed class
    • feat: add wasm compatibility
    • feat: add protocol getter to WebSocket
    • fix: cancel subscription on close or reconnect
    • fix: invalid_runtime_check_with_js_interop_types
      • bump minimum Dart SDK version to 3.4.0
    • fix: only attempt reconnect on Exceptions to avoid infinite retry-loop
    • refactor: upgrade analysis_options
    Open source →
  3. 0.1.5 25 Sep 2024
    Release notes

    What's Changed

    Full Changelog: v0.1.4...v0.1.5

    Open source →
    Release notes
    • chore(deps): upgrade to pkg:very_good_analysis ^6.0.0
    • chore(deps): support for pkg:web: ^1.0.0
    • chore: add funding to pubspec.yaml
    Open source →
  4. 0.1.4 12 Jun 2024
    Release notes

    What's Changed

    Full Changelog: v0.1.3...v0.1.4

    Open source →
    Release notes
    • fix: consecutive calls to close complete normally
    Open source →
  5. 0.1.3 12 Jun 2024
    Release notes

    What's Changed

    Full Changelog: v0.1.2...v0.1.3

    Open source →
    Release notes
    • deps: support for pkg:web_socket_channel: ^3.0.0
    Open source →
  6. 0.1.2 27 Apr 2024
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v0.1.1...v0.1.2

    Open source →
    Release notes
    • deps: upgrade pkg:web and pkg:web_socket_channel
      • requires Dart >=3.3.0
    Open source →
  7. 0.1.1 18 Jan 2024
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v0.1.0...v0.1.1

    Open source →
    Release notes
    • feat: add headers support
    • feat: migrate to package:web
    Open source →
  8. 0.1.0 11 Aug 2023
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v0.1.0-dev.3...v0.1.0

    Open source →
    Release notes
    • fix: cannot add new events after calling close
    • docs: update snippet typo in README.md
    • docs: add topics to pubspec.yaml
    • deps: upgrade to mocktail: ^1.0.0 and very_good_analysis: ^5.0.0
    Open source →
  9. 0.1.0-dev.3 07 Mar 2023 pre-release
    Release notes

    What's Changed

    • feat: add binaryType parameter to WebSocket class by @mytja in #15

    New Contributors

    • @mytja made their first contribution in #15

    Full Changelog: v0.1.0-dev.2...v0.1.0-dev.3

    Open source →
    Release notes
    • feat: add binaryType parameter to WebSocket class
    Open source →
  10. 0.1.0-dev.2 09 Feb 2023 pre-release
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v0.1.0-dev.1...v0.1.0-dev.2

    Open source →
    Release notes
    • refactor: upgrade to Dart 2.19
      • chore(deps): upgrade to Very Good Analysis 4.0.0
    Open source →
  11. 0.1.0-dev.1 14 Dec 2022 pre-release
    Release notes
    • feat: initial dev release 🎉
    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