Hi,
I currently try to find out, how to receive updates about lobby changes, lobby member joins and lobby invites. I think the SubscribeToLobbyResource is the correct endpoint for that, but what is the ResourceId and SubscriptionVersion parameter?
Same for matchmaking. I want to implement a ready check, once a match is found the players should accept the match or leave the matchmaking queue and the queue should continue searching for more players. The correct method should be SubscribeToMatchmakingResource to receive updates about the members of a matchmaking ticket, but what is the ResourceId parameter?
The SignalR setup is no problem, but how do I subscribe to the updates?
Answer by Gosen Gao · Jul 01 at 06:44 AM
It is recommend to use our Lobby SDK to do the real-time notifications. As our documentation mentions, “Using Lobby, Matchmaking, and real-time notifications directly with REST and SignalR APIs is significantly more complex than using client SDKs such as the Lobby C++ SDK, Unreal Engine 4 SDK and Unity SDK, and should only be done if the SDKs don't meet your needs.”
If you do need to use REST and SignalR APIs, then the ResourceId should be the Lobby id and the SubscriptionVersion should be 1.
@Gosen Gao Hello. I'm trying to use this feature as well, but I cannot find any descriptions about 'PubSubConnectionHandle' field. Can you let me know how I can get this value? Thanks.
You can find the SignalR documentation here. You receive the connection handle when connection to the SignalR Hub.
A-ha that's what I missed... Thank you for your kind answer
Hi, I need to use a custom implementation, as the SDK doesn't support MacOS and Linux.
I assume the ResourceId to receive invites is the ID of the player receiving the invites?
If you want to subscribe to LobbyInvite, then the ResourceId should be "@me".