fix: fixing connection management test [MTT-4492][MTT-6242] by LPLafontaineB · Pull Request #826 · Unity-Technologies/com.unity.multiplayer.samples.coop

Description

This PR adds the OnServerStopped event, added in NGO 1.4.0, to the ConnectionManager and the ConnectionStates. This allows the detection of unexpected shutdowns on the server. One of the connection management tests was ignored because there was no mechanism to detect this, but now it can be enabled.

No events were added for OnClientStarted and OnClientStopped in the ConnectionManager because for this system OnClientConnected and OnClientDisconnect are more relevant.

Issue Number(s)

MTT-4492 & MTT-6242

Contribution checklist

  • Tests have been added for boss room and/or utilities pack
  • Release notes have been added to the project changelog file and/or package changelog file
  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • JIRA ticket ID is in the PR title or at least one commit message
  • Include the ticket ID number within the body message of the PR to create a hyperlink
  • [n/a] An Index entry has been added in readme.md if applicable