Gamelift DescribePlayerSessions and synchronization

0

Hi,

In order to notify gamelift that players are accepted by my server, I have to call AcceptPlayerSession with a player session id. To obtain this player session id, I am using DescribePlayerSessions with the connecting player id as parameter.

1)I am wondering whether DescribePlayerSessions is the prefered method to obtain player session ids. If not do I have other ways?

  1. Am I guaranted that by the time a player connects (which means that flexmatch successfully placed the player), DescribePlayerSessions will actually return the player session id or do I have to periodically poll?

To add some context, I'm using both Gamelift and Flexmatch.

Thanks, Nicolas.

질문됨 2년 전255회 조회
2개 답변
0
수락된 답변

As far as I understand, I believe the preferred method for this is to have incoming players send their player session ids when trying to connect to/join the server. Then the server will check if it's a valid player session id and accept if it is, or reject the connection if it's not.

Since you're using flexmatch, the clients should be able to get their player session id from the information in the MatchmakingSucceeded notification event that occurs when the players get placed into a match/game session successfully.

답변함 2년 전
0

Thanks for the answer, makes sense

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠