How can an application communicate with the server and instantly reflect updates?

It is just for knowledge. I will try to explain as much as I can, what is my question. Usually I call Async every time when updates on the server side, for example, are not reflected as soon as they change. For example, whatsapp reflects updates almost instantly. for example, when a user types, he shows another user that he is printing. In short, what protocols do they use and how do they use them.

thank.

+4
source share
2 answers

What protocols do they use?

An application like Whats, G-talk, facebook, etc. they use XMPP for instant messaging services.

What is XMPP?

(XMPP) , Extensible Markup (XML) . , XMPP XML

XMPP

  • [RFC3920]
  • [RFC3920]
  • [RFC3921]
  • [RFC3921]
  • "--" [RFC3920]
  • [XEP-0045]
  • [XEP-0060]
  • [XEP-0030]
  • [XEP-0115]
  • [XEP-0004]
  • [XEP-0050]
  • [XEP-0166]

, XMPP

, XMPP

  • Middleware
  • Voice over IP (VoIP)

HTTP XMPP -

XMPP.

  • Ejabberd
  • Openfire
  • Tigase

xmpp

XMPP,

XMPP Android, Smack 4.1, XMPP, java.

XMPP , xmpp, , , XMPP. .

::        , aSmack, Smack 4.1, aSmack !

  • aSmack
  • aSmack to Smack Upgrade guide
+1

Google (GCM), GCM :

Google Cloud Messaging (GCM) Android - , Android , ...

, propper , , , - .

https://developer.android.com/google/gcm/index.html

+1

All Articles