Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by Marcel Ernst · Jun 29 at 06:34 PM · apisMatchmaking

How to use SubscribeToLobbyResource and SubscribeToMatchmakingResource

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?

Comment

People who like this

0 Show 1
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Gosen Gao · Jun 30 at 10:10 AM 0
Share

I will do some research.

1 Reply

· Add your reply
  • Sort: 
avatar image

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.

Comment
cot2227

People who like this

1 Show 5 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image cot2227 · Jul 04 at 02:42 PM 0
Share

@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.

avatar image Marcel Ernst cot2227 · Jul 04 at 05:14 PM 0
Share

You can find the SignalR documentation here. You receive the connection handle when connection to the SignalR Hub.

avatar image cot2227 Marcel Ernst · Jul 06 at 04:13 AM 0
Share

A-ha that's what I missed... Thank you for your kind answer

avatar image Marcel Ernst · Jul 04 at 05:15 PM 0
Share

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?

avatar image Gosen Gao Marcel Ernst · Jul 06 at 08:44 AM 0
Share

If you want to subscribe to LobbyInvite, then the ResourceId should be "@me".

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    15 People are following this question.

    avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

    Related Questions

    Get SessionID on client 1 Answer

    StartGame race condition? 1 Answer

    Region Ping measured RTT inaccurate/high using Unity HTTP, recommendations or ICMP ping protocol support? 1 Answer

    New to PlayFab. How to use matchmaking? 1 Answer

    Server API get servers 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges