setConnectionState
Updates the canonical app-level connection state.
This should only be called by MeshConnectionManager. Direct mutation from other components would bypass the transport-to-app reconciliation logic and create state inconsistencies.
Parameters
connectionState
The new ConnectionState.