Check out example codes for "unity matchinfo". It will help you in understanding the concepts better.

Code Example 1

MatchInfo.matchInfo = networkManager.matchInfo;
networkManager.matchMaker.DropConnection(matchInfo.networkId, matchInfo.nodeId, 0, networkManager.OnDropConnection);
networkManager.StopHost();

Learn ReactJs, React Native from akashmittal.com