question

Robyn To avatar image
Robyn To asked

Get SessionID on client

I am trying to retrieve and display/log the multiplayer session ID the client is connected to.

How do I access the SessionId from client?

apisMatchmakingmultiplayer
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Gosen Gao avatar image
Gosen Gao answered

If the server instance is allocated by the Matchmaking system, then SessionId and MatchId are the same, you can get it by API GetMatchmakingTicket when the Matchmaking finishes successfully. If you create the server instance with API RequestMultiplayerServer, as the SessionId is required, you can customize it and store it on the client side.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.