question

Muhannad Mustafa avatar image
Muhannad Mustafa asked

Advanced connection status for WSS and TCP games ,Advanced Connections events

Hello , I have an important question before we move our games to playfab and I hope to get an expert advise regard that . Is it possible for playfab game servers to have somethin like Advanced connection eventsThe CONNECTION_RETRY and CONNECTION_RESUME events signal a temporary disconnection and relative re-connection success to the server. This allows the developer to know when the HRC system is performing the transparent auto-reconnection and freeze their game logic or provide feedback to the user accordingly. Our games are running custom engine, and we know some advanced engine offers transpernt reconnect where the player don't lose his game status if he received phone call or network dc for few sec while doing etc... How to have something like that at playfab please specially for quick turn based games.. Thanks

,

Hello ,

I have an important question before we move our games to playfab and I hope to get an expert advise regard that .

Is it possible for playfab game servers to have somethin like

Advanced connection eventsThe CONNECTION_RETRY and CONNECTION_RESUME events signal a temporary disconnection and relative re-connection success to the server. This allows the developer to know when the HRC system is performing the transparent auto-reconnection and freeze their game logic or provide feedback to the user accordingly.

Our games are running custom engine, and we know some advanced engine offers transpernt reconnect where the player don't lose his game status if he received phone call or network dc for few sec while doing etc...

How to have something like that at playfab please specially for quick turn based games..

Thanks

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.

Sarah Zhang avatar image Sarah Zhang commented ·

Could you please provide more details, such as how your custom engine work? Do you want to get the status of the server, like "active", "standby", "shutdown",etc.? Or you want to get an event when the clients disconnect to the server?

0 Likes 0 ·
Seth Du avatar image
Seth Du answered

Hi @Muhannad Mustafa, sorry for the late response. Sarah mentioned about status of the server, like "active", "standby", "shutdown", which may not be what you request.

To be clear, PlayFab Multiplayer Server doesn't provide any built-in connection method for developers, which means you are able to implement any public networking framework as you want. CONNECTION_RETRY and CONNECTION_RESUME events signal can be defined on your own.

The TCP port configuration means open the specified ports in the container for server build uses, and if you want to use WSS/websocket, you may define it in the server build and use any defined TCP port, as websocket is tcp type connection.

PlayFab provide some multiplayer server samples in GitHub, PlayFab/MpsSamples: Samples that show how to use PlayFab's Gameserver SDK for Multiplayer Servers (github.com). As you can see one of them is using Unity Mirror. Mirror is a high-level networking Framework introduced by Unity, and it also support many low-level networking API (the sample is using Telepathy). The combination is decided by yourself, and you can compare between different popular frameworks. There is no best solution, and it may take time to do the research but will eventually improve the multiplayer gaming experience of your game.

10 |1200

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

Muhannad Mustafa avatar image
Muhannad Mustafa answered

Hello Sarah,

Thanks for your reply.

The main reason behind this request; is to know how to handle sudden users' disconnection, knowing if the user gained his connection back, and resume the user session (Gameplay) without forcing the user to start or lose his progress or turn.

Such feature exists by default at SmartFox Server and is being utilized heavily by Turn-Based games to enhance players' experience during game pay in case they received a phone call and/or their 4G disconnected for while.

Kindly review detailed information about this feature here:- http://docs2x.smartfoxserver.com/GettingStarted/reconnection-hrc-plus

if you don't mind we have also another concern we only see TCP port configuration at the playFab custom server, we can't see a place to configure WSS ports at playfab is how to connect via Websocket protocol to playFab custom servers?

Thanks



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.