Gamelift DescribePlayerSessions and synchronization
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?
- 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.
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.
Thanks for the answer, makes sense
Gamelift DescribePlayerSessions and synchronizationAccepted Answerasked 3 months ago
Shutdown Gamelift Sessionasked 3 years ago
How can I create a friends list with GameLift?asked a year ago
PlayerSessionIds only accepted sometimes by gamelift serverasked 3 years ago
[Unreal] How to remove a PlayerSession when Player leaves a GameSession?asked 10 months ago
Gamelift and game state management?Accepted Answerasked 2 years ago
Matchmaking event of type MatchmakingSucceeded did not contain player session ids of new incoming playersAccepted Answerasked 2 years ago
GameLift Hosting for existing gameasked a year ago
Player Session Still ACTIVE After Client Disconnectedasked 14 days ago
AcceptPlayerSession() accepts existing active player sessionasked 2 years ago