question

Alexander Tretyakov avatar image
Alexander Tretyakov asked

[UE] Subscribing to resources using the UE marketplace plugin

Hello,

We are using PlayFab SDK plugin from the Unreal Engine Marketplace and we would like to subscribe to matchmaking events (such as "matched" event) instead of polling.

UPlayFabMultiplayerAPI object we are using only has SubscribeToLobbyResource function that gives you a "topic" entity that you should somehow use (no documentation here). There's no SubscribeToMatchmakingResource function or any mention of it in the plugin. The documentation states that "The real-time notifications feature for Lobby and Matchmaking services works through a SignalR service, which exposes a SignalR Hub. This SignalR Hub can be used by game clients to receive messages about resources they subscribed to." which means that we can subscribe to events using a SignalR service instead of polling.

Since the UE plugin has SubscribeToLobbyResource function I'm wandering if there is a built-in solution in the plugin to listen to subscribed resources? If not, can you point to resources that describe how to do this in C++? Maybe you have an UE plugin or a C++ library for SignalR? What about sample code or examples?

Best regards, Alexander.

unrealMatchmaking
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

·
Xiao Zha avatar image
Xiao Zha answered

The PlayFab SDK in the marketplace doesn’t support real-time notification feature at this time. And if you want to have real-time notification feature with PlayFab Lobby and Matchmaking, for UE, you can use PlayFab Multiplayer Unreal Online Subsystem (OSS). For the usage, please see PlayFab Online Subsystem (OSS) Quickstart - PlayFab | Microsoft Learn and Online Subsystem Session Interface in Unreal Engine | Unreal Engine 5.0 Documentation.

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.