URL request vs socket connection for online games

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bnashenas1984
    Contributor
    • Sep 2007
    • 257

    URL request vs socket connection for online games

    Hi
    I need some expert advices.
    I'v been asked to build a card game which could run on Android, iPhone and web browsers and as AIR is a cross platform solution and i'v been working with AS3 for a while I decided to build it with AIR.

    It's a card game with 4 players on each table and of course there will be many tables running at the same time.

    As loading data from the server each second to get the new info makes the server get slow I thought it might be better to use sockets to do it the other way and send the data from the server to client when ever there is data.

    Some friends thought it might take alot of power from the cell phones battery plus that there will be connection problems for people sitting in a train or driving. Some others said it might be better to use notification systems to make it work.

    I'v been searching google for days without finding any usefull answers.

    Could you please tell me what to do? Which one is the best way to choose or are there any other ways to accomplish this job?

    Thanks
    Behzad
  • bnashenas1984
    Contributor
    • Sep 2007
    • 257

    #2
    I recently heard about long polling technics.
    Does anyone have any ideas which one is the best to go for?

    Comment

    Working...