Modify switchConnection

In switchConnection: the transaction must be passed as callback to setState because setState is asynchrounous.
1 job for 26-pass-a-handler-when-opening-the-crdt
Status Name Job ID Coverage
  Collaborative Pipeline
failed collaborative