We have an android application, which requires real time chatting. Only 1 vs 1 chat is fine. We want to use MQTT Broker for the same. We only require server-side implementation. The Broker should has the following setup -
1. Authentication using existing MySQL table.
2. Deliver offline messages
3. Online/Offline status
4. Securing chat between two users
5. Encrypted messaging