I need to send data from a java app to an android app in real time. The data is not large(integers within 0 and 9) but the number of transmissions is high, around 5 transmissions per second.
I wish to have a publisher subscriber model. Java app is going to push data to the android app instead of android app continuously pinging the java app for data.
Transmission has to be in real time and will happen over a LAN.
Tried with GCM but its not real time. Pubnub is another but not sure how realtime it will be.
How to proceed ?