Skip to content

Releases: centrifugal/centrifuge-dart

v0.20.0

Choose a tag to compare

@FZambia FZambia released this 16 Jun 15:49
f91c8f1

What's Changed

Full Changelog: v0.19.1...v0.20.0

v0.19.1

Choose a tag to compare

@FZambia FZambia released this 19 May 12:03
9216d55

What's Changed

  • Fix connection and subscription stability bugs by @FZambia in #109

Full Changelog: v0.19.0...v0.19.1

v0.19.0

Choose a tag to compare

@FZambia FZambia released this 10 May 07:43
a7b8d5c

What's Changed

  • Add Client.close() — disconnects and releases all client resources (closes every event stream and removes every subscription). The client is unusable after close(); subsequent public method calls throw ClientClosedError. Use Client.disconnect() for a temporary disconnect that keeps the client usable. #106
  • Multiple connection stability fixes, see #106 for the full list. Highlights:
    • await client.disconnect() now actually waits for transport teardown before resolving.
    • Disconnect code 3014 (connection state invalidated) and unsubscribe code 2502 (subscription state invalidated) now correctly clear the relevant token and recovery state, forcing a fresh getToken on reconnect.
    • WebSocket close code 1009 (message size limit) is now terminal (no auto-reconnect), matching the behavior in centrifuge-js.
    • Cancelling a subscription while its SubscribeRequest is in flight now sends a cleanup Unsubscribe to the server, preventing a "ghost" server-side subscription that keeps pushing publications to the local sub.
    • Concurrent unsubscribe()/disconnect during a subscribe round-trip can no longer flip the subscription state back to Subscribed.
    • Several smaller correctness fixes around connect-mutex resets, async error handling, ping-reply decoding, and the ClientDisconnectedError thrown type.
  • Wire ClientConfig.tlsSkipVerify through to the WebSocket transport on VM/Flutter (dart:io) platforms — was a silent no-op before. Useful for wss:// development against a self-signed cert. Web platforms ignore the flag, since the browser owns TLS validation. #107
  • Substantially expand the integration test suite: server-initiated reconnection scenarios, extended stream recovery edge cases, client/subscription lifecycle ordering, getToken retries, and several race-condition tests, all running against the docker-compose Centrifugo.

Full Changelog: v0.18.0...v0.19.0

v0.18.0

Choose a tag to compare

@FZambia FZambia released this 02 Feb 17:11
96a1bfa

What's Changed

  • Allow protobuf v6, drop Protobuf v3/v4, min SDK 3.7 by @FZambia in #104

Full Changelog: v0.17.0...v0.18.0

v0.17.0

Choose a tag to compare

@FZambia FZambia released this 12 Oct 06:52
8e9c1ef

What's Changed

Full Changelog: v0.16.0...v0.17.0

v0.16.0

Choose a tag to compare

@FZambia FZambia released this 08 Jul 03:47
969c3c9

What's Changed

  • Allow usage of protobuf v4, drop protobuf v2 by @FZambia in #100

Full Changelog: v0.15.1...v0.16.0

v0.15.1

Choose a tag to compare

@FZambia FZambia released this 29 May 16:28
d09071e

What's Changed

Full Changelog: v0.15.0...v0.15.1

v0.15.0

Choose a tag to compare

@FZambia FZambia released this 26 Jan 11:39

What's Changed

  • Update web_socket_channel, min Dart SDK is now 3.3 #91
  • Support headers emulation in web context - so it's possible to pass custom connection headers to the backend when using Centrifugo v6 and connect proxy. Also added setHeaders method to update headers #92.

This release changes headers in ClientConfig from Map<String, dynamic> to Map<String, String>. This is a breaking change, but it must not cause huge troubles beyond a simple refactoring.

Usages of dart.html were removed in this release. Also some internal optimizations were done to allocate less when constructing Protobuf command data.

Full Changelog: v0.14.1...v0.15.0

v0.14.1

Choose a tag to compare

@FZambia FZambia released this 02 Sep 07:48
84886b8

What's Changed

  • Add renew connection data callback by @Holofox in #88

Full Changelog: v0.14.0...v0.14.1

v0.14.0

Choose a tag to compare

@FZambia FZambia released this 20 Jan 13:46
daa40bc

What's Changed

  • connInfo and chanInfo for join/leave events by @hetao29 #84

New Contributors

Full Changelog: v0.13.0...v0.14.0