What is the best way to get data from server as fast as it gets to it? (Like instant message, or simple broadcast for example).I first thought about using miniature web server in android and get post requests to it with data. However with this approach I soon understood that I will get many problems with NAT and similar issues.Later I thought about manually pooling the server from android, but it seems somewhat flaky approach to problem, because data is got in irregular intervals (like image with some text).I was thinking about using something like webrtc or rtp to have connection between server, but these approaches are somewhat complex and half baked. I found very little info on those about data operation. Thought I managed to get in my experiments video and sound transfer, I found very little info how to get data transfers.What should I do? Now I am thinking about having some connection to server and getting some events in android, which when I got update in server could download everything from server.Update: My data is encode64 processed html5 canvas png image. Probably I will add to it some text data to blob. It is generated on webpage it should reach phone as fast as it can through server. The problem is part where image data goes from server to phone. Data size per request is ~50KB.
What could be used to get data from server to android as fast as it reaches server?
web services;server;android development