기술 자료

Multiplayer Services SDK

Multiplayer Services SDK

Relay players

Learn the roles and responsibilities of host and joining players on a Relay server.
읽는 시간 2분최근 업데이트: 8일 전

In the Relay service, a player is an end-user who is using a game client and is connected to a Relay server. Relay identifies players by their allocation, and Relay player IDs are only unique among the players connected to the same host.
참고
This page describes players at the Relay network level. In a Multiplayer Services SDK session, players are authenticated with Authentication and identified by their Authentication player ID, which is unique across your project. For information about players in a session, refer to Introduction to multiplayer sessions.
There are two types of players:

The host player

Host players are players who create a session and then generate a join code to share with other players. There's only one host player per session. A host player receives its connection data after making an allocation request.

Joining players

Joining players are players who receive the join code from the host player and then use the join code to join the game match. Joining players receive their own connection data, and the host's connection data, after making a join request using the join code. These connection data are used to request a connection to the host through the Relay server.

Maximum connections

The maximum number of players that can join and connect to the host in a session depends on the maximum number of connections configured by the host when they make the allocation request.
Additional players can join the Relay server and connect to the host, as long as the number of connected players remains under the maximum allowed connections. Lobby and Relay both allow for a maximum player value of 150.