Communication between web and photon

mbustos
edited January 2012 in Photon Server
Hi, We just integrate the double currency in our MMO (developed in C++). The first (Tokens) you get it playing, the second (Coins) you buy with real money on the website of the game.

I need to know if we can communicate from php with Photon to update the Coins in the game when becomes an income from the web.

Thanks!

Comments

  • Sorry for the delay. The holiday season kept most of our team busy.

    Photon itself doesn't open HTTP listening ports or anything similar and we don't have a php lib. Websockets are still in the works and not production ready.
    It might be best, to let php write the coins to an account DB and then access the DB via Photon directly. Make sure NOT to fetch a user's data regularly from the DB to fetch updates - this means a lot of polling stress. A solution could be to write a list of "recent updates" into the DB and fetch only this by Photon. Update only the accounts that are in this list.