Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fast connect my XMPP based app like WhatsApp?

I am playing with Smack API and Openfire. I found, In XMPP protocol you have to open stream, log in and enable features for every time,which is very time consuming. Then how the famous massager app WhatsApp work, how it can connect in so less time? If anyone can give me any hint please. I want to make like that, For that i can customize both the Openfire and Smack.

Thanks and sorry about my English.

like image 676
prem jangir Avatar asked Nov 08 '22 14:11

prem jangir


1 Answers

You can speed up your connections considerably by utilizing optimizations, such as Stream Management (https://xmpp.org/extensions/xep-0198.html) and Roster Versioning (https://xmpp.org/extensions/xep-0237.html) - both of which are supported.

like image 94
Guus Avatar answered Nov 14 '22 08:11

Guus