Jump to content
MakeWebGames

The Grid - Strategy Browser Game. Implement sockets, or Ajax?


Recommended Posts

Posted

Web sockets are... so far more of a prototype of wished feature than something I would really use. Why? Because most (enterprise) firewalls would block them, and because they would require some... more work on the server side. Yet, if you manage to make them work and you don't have issues with the firewall of your customers, they are certainly better smarter than AJAX.

On the other side, you can do Ajax like google do, they keep the connection for like, 30-60 sec, and use it to send updates through it during this time, after which, they drop the connection and build a new one (that's for the updates from the server). For the updates of the client, they open a new AJAX nearly every time the client need to send some updates.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...