connectionStateChanges property

Stream<ConnectionStateChange> get connectionStateChanges

Gets a Stream of ConnectionState that can be used to be notified whenever the connection state changes.

Implementation

Stream<ConnectionStateChange> get connectionStateChanges {
  final controller = SessionConnectionStateController(this);
  return controller.createStream();
}