onStatusChange property

Emits every status change of this channel's subscription, along with the error that caused it for RealtimeSubscribeStatus.channelError.

channel.onStatusChange.listen((change) {
  print('channel status: ${change.status}');
});
channel.subscribe();

Implementation

Stream<RealtimeSubscribeStatusChange> get onStatusChange =>
    _statusController.stream;