question

sergencansiz avatar image
sergencansiz asked

Can PlayFab Be Used for Real-Time HTML Games?,PlayFab for Multiplayer Realtime HTML Games

Hello,

We are working on real time HTML multiplayer games and we would like to use PlayFab as backend service. There will be different HTML games which user can join after login and get matched with other users. What we didn't understand is how multiplayer networking works on PlayFab. There is Matchmaking API which we can create matches depend on various rules and matches the users. There is also PlayFab Party for networking and chatting but it doesn't provides SDK for JavaScript. So, after users are matched can we do real-time data publishing/subscribing between players without using "Party"? Is Matchmaking in Multiplayer Server just for keeping states of matches? Should we use external service to make real-time data transferring between players? (Something like Socket.IO or Photon).

Thank you for your help

multiplayerMatchmaking
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

Party is the solution we provide for real-time communications between players, however, currently it’s not available on browsers, you can find all supported platforms in this doc: Azure PlayFab Party SDKs - PlayFab | Microsoft Docs. Your saying about Matchmaking is basically correct, what it does is to help your players find each other and manage their match states. And, for the communication part, since Party’s browser support is not available now, you may need to use an external service for this.

2 comments
10 |1200

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

sergencansiz avatar image sergencansiz commented ·

Thank you for your answer. Is it possible to create websocket server in Multiplayer Server 2.0 which manage players who connects server. Because, when players are matched GetMatch API returns members and connection info as Port and IP. Can we establish Websocket connection by using this Port and IP, If we build Websocket server in Multiplayer Server.

0 Likes 0 ·
Citrus Yan avatar image Citrus Yan sergencansiz commented ·

Sure, Multiplayer Server 2.0 supports TCP protocols, where you can establish Websocket connections over.

1 Like 1 ·

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.