question

David Rochin avatar image
David Rochin asked

Sending and reading "parameters" when calling RequestServer

I need to send some data to my requested server, such as game mode and map. How can I do this cleanly?

apissdksmultiplayer
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

·
Citrus Yan avatar image
Citrus Yan answered

I assume that you’re referring to RequestMultiplayerServer, is that correct? In that case, the parameter “SessionCookie” can be used to send some data to the requested server. And, in the requested server, use the GSDK to retrieve the data from the session cookie:

if (config.TryGetValue(GameserverSDK.SessionCookieKey,
out string sessionCookie))
{
// sessionCookie
contains the value
}

Integrating game servers with the PlayFab Game Server SDK (GSDK) - PlayFab | Microsoft Docs

1 comment
10 |1200

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

David Rochin avatar image David Rochin commented ·

I'll try that. Thanks

0 Likes 0 ·

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.