Xmpp
Xmpp specification
Questions in this topic
Does MQTT require Internet?
Is FaceTime or WhatsApp better?
What is difference between messenger and messages?
What port is XMPP?
What ports do WhatsApp use?
Whats the point of WhatsApp?