Channel identifiers for large scale games
Use channel identifiers for large-scale game servers with Vivox.
Read time 1 minuteLast updated 2 days ago
If either of the following statements are true, then use caution when constructing your channel identifiers:
- You expect your application to exceed 100,000 PCU
- You expect to use the multichannel feature
- Use a hash to identify the match
- Include the region and match identifiers in the "shard" portion of the channel identifier
- Include the 3D and squad identifiers after the "shard" portion of the channel identifier
d0634bad1ca5a9cdtundraNewChannelProps-
Positional Channel
string shard = "NA";string matchId = "d0634bad1ca5a9cd";string positionalSpaceId = "tundra";Channel3DProperties NewChannelProps = new Channel3DProperties(/* Add your own custom positional channel proprties here */);await VivoxService.Instance.JoinPositionalChannelAsync($"{shard}.{matchId}-{positionalSpaceId}", ChatCapability.AudioOnly, NewChannelProps);
-
Group Channel for Squad 1
string shard = "NA";string matchId = "d0634bad1ca5a9cd";int squadId = 1;await VivoxService.Instance.JoinGroupChannelAsync($"{shard}.{matchId}-{squadId}", ChatCapability.AudioOnly);
-
Group Channel for Squad 2
string shard = "NA";string matchId = "d0634bad1ca5a9cd";int squadId = 2;await VivoxService.Instance.JoinGroupChannelAsync($"{shard}.{matchId}-{squadId}", ChatCapability.AudioOnly);