sockets - Which technology is the best to inform clients about server events immediately? -


I'm about to make a game first, it will be a browser game, later it will be an APP (Android, iPhone game).

On the server side I use Engex, Apache, PPP.

=================

I would like to inform online players about various incidents, for example: one user other I am attacking him should inform me about it immediately.

Classic AJAX can not be wrong there I have read something about comets, web sockets and some other technologies but I still can not understand what is the best solution for me? Please, help me decide.

WebSocket should be the preferred option. This is a widely supported technique.

This is a continuous, full duplex connection, which is compatible with all major browsers


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

c# - Chart control: Design messed Up after clearing and re-adding Y-Values -

javascript - Bootstrap Modal won't close, previously appended to Body using JQuery -