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 /
  • PlayStream /
avatar image
Question by madmojoman · Oct 30, 2019 at 05:46 PM · Custom Game ServersPlayStream

PlayStream Events to Custom Game server

The situation I have is that I want to give an update to a player's Player Data (Title) a unique key and value to any new players when their account is created for the game title. I have a custom game server that I would like to be able to handle the processing to make certain they are given a unique value related to other player's data from a given segment, and that they are given that value in a specific order. So if there are 2+ players creating an account at the same time they are not given the same key value.

The plan is to setup a sort of queue system where a new player will be tossed into this queue to be handled on a first-come, first-set basis. I'd like the custom game server to be able to know when a player account has been created and give them the proper key-value. But I can't seem to locate any way of subscribing to any PlayStream event. (I found some notes on PlayFabPlayStreamAPI.Start not really being supported, and a PubSub thing that's in preview right now.) But nothing I could use immediately just to get a simple notification to the game server.

Has anyone setup something similar for this situation? Is a solution available? Or can someone write up a simple guide to getting, either from PlayFab PlayStream events or a CloudScript function, to send a message to Custom Game Server on PlayFab's Legacy Multiplayer area, please?

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 madmojoman · Oct 30, 2019 at 08:19 PM 0
Share

I decided to change out the current CloudScript option that doesn't work and get the client to update the server when it needs to handle that stuff instead as a part of my current login/registration checks. So, I guess nevermind on the ideas on how else to do it.

But I am still interested in whether there's some way other than PubSub to have a custom server alerted to or aware of PlayStream events?

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Citrus Yan · Oct 31, 2019 at 06:05 AM

Hi @madmojoman,

>>But I am still interested in whether there's some way other than PubSub to have a custom server alerted to or aware of PlayStream events?

You can utilize Webhooks to notice a custom server of certain PlayStream events, PlayFab will forward the event data to any web URL you want via POST in the request body as JSON when they occur. Moreover, you can also set up a Rule to react to certain events by executing a CloudScript function that makes webhook calls to any Web API endpoint with related event data, this will give you more flexibility to handle these events.

Comment

People who like this

0 Show 0 · 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

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

    3 People are following this question.

    avatar image avatar image avatar image

    Related Questions

    Playstream events for custom game server 1 Answer

    Failing to connect to PlayStream 1 Answer

    Is it good to run realtime puzzle game server with PlayStream? 2 Answers

    Integrating other Cashshop systems 1 Answer

    How to convert Country code to string value 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