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
102 stars 29 forks source link

Private channel subscription and connection flow fixes #20

Closed FZambia closed 5 years ago

FZambia commented 5 years ago

This pull request contains a bunch of client improvements and fixes: 1) Use Websocket Ping/Pong frames to find broken connections 2) Add proper support for private channel subscription - with callback on every attempt to subscribe to private chanel 3) Fix null pointer dereference when sending requests while client disconnected - throw ClientDisconnectedError in this case