centrifugal / centrifuge-dart

Dart (Flutter) client SDK for bidirectional communication with Centrifugo and Centrifuge-based server over WebSocket
https://pub.dartlang.org/packages/centrifuge
MIT License
110 stars 34 forks source link

Remove connected property #22

Closed FZambia closed 5 years ago

FZambia commented 5 years ago

Looks like this property leads to confusion from users.

mogol commented 5 years ago

What’s it for?

FZambia commented 5 years ago

What’s it for?

It allowed to check whether client is in connected state, but due to the fact that connect method is asynchronous it leads to unexpected results when users try to check it immediately after .connect(). Looks like we should provide a better doc in general.