S
S
svoyak2012-11-30 19:14:15
Mobile development
svoyak, 2012-11-30 19:14:15

Sending data asynchronously to Flash and Andriod, iOS apps?

There is a certain step-by-step strategy (one person walks, the remaining N players and spectators see the moves in real time): server in PHP , client - JS , synchronization - Long polling .
There was a need to replace JS with Flash (AS3) with further builds for Andriod and iOS.
Of course, synchronization should already be done normally, so that the server itself sends data to clients when it is needed, and not all clients make requests for updates at intervals.
How to do it right?
Sockets? Will they work equally well everywhere in a browser/robot/apple?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
LeoCcoder, 2012-11-30
@svoyak

Poker has been running on our sockets for more than a year and everything is fine, in flash / apple / android (thousands of online players). You can try higher-level abstractions over sockets, RPC for example, but for games IMHO standard sockets and your own exchange protocol, where there is nothing superfluous, is the very thing. Do not forget to compress the traffic if you are thinking of exchanging large batches of data (256 bytes + somewhere per packet)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question