stateChanges property
Stream that emits whenever the connection state changes.
Use this to drive a connectivity banner or to disable optimistic
sends when the channel is disconnected. Emits the new state only
(not the previous one); pair with connectionState if you need
both.
Implementation
@override
Stream<ChatConnectionState> get stateChanges => _stateController.stream;