Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [3.0.1]

- Bug fix: Fix a bug where the reconnect event would be emited before actually being reconnected

## [3.0.0]

- Sound null safety compat
Expand Down
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,6 @@ You can access the Kuzzle repository on [Github](https://github.com/kuzzleio/kuz
* [Documentation and Samples](#documentation-and-samples)
* [Contribution](#contribution)

## Installation

Include this in your pubspec.yaml

```yaml
dependencies:
kuzzle: ^3.0.0

```

## Documentation and Samples

* [https://docs.kuzzle.io/sdk/dart/2/](https://docs.kuzzle.io/sdk/dart/2/) -
Expand Down
5 changes: 3 additions & 2 deletions lib/src/protocols/abstract.dart
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,11 @@ abstract class KuzzleProtocol extends KuzzleEventEmitter {
return;
}

emit(protocolState == KuzzleProtocolState.reconnecting
final protocolStateCpy = protocolState;
protocolState = KuzzleProtocolState.connected;
emit(protocolStateCpy == KuzzleProtocolState.reconnecting
? ProtocolEvents.RECONNECT
: ProtocolEvents.CONNECT);
protocolState = KuzzleProtocolState.connected;
}

/// Called when the client's connection is closed
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: kuzzle
version: 3.0.0
version: 3.0.1
description: A library to interact with kuzzle API. A backend software,
self-hostable and ready to use to power modern cross-platform apps.
homepage: https://github.com/kuzzleio/sdk-dart
Expand Down