updateConnectionStatus method
Moves the client to status, and publishes it when it is a move.
The same status twice is dropped. ConnectionStatus.unsupported is terminal: once the build has been refused, the teardown that follows (and any late frame) cannot report the client as merely disconnected.
Implementation
@protected
void updateConnectionStatus(ConnectionStatus status) {
if (isUnsupported && !status.isUnsupported) {
return;
}
if (status == _connectionStatusValue) {
return;
}
_connectionStatusValue = status;
if (!_connectionStatus.isClosed) {
_connectionStatus.add(status);
}
}