![]() ![]() Problem is as per XMPP protocol, client & Ejabberd server directly establish a persistant connection, so how do I put my API layer in between? Its been weeks of headbanging by now and I am stuck. I am not getting any resource on how to create API layer instead of letting client phones directly communicate with Ejabberd Server. ![]() The multi-layer defence identifies suspicious. So tomorrow if I replace Ejabberd server with custom MQTT solution (for scale), then I won't need my app users to update app, since API endpoints have same URL, and I can simply change code behind my API layer, thus keeping me free of depending on Ejabberd forever. The detection layer analyses your transactional data in real-time to deliver unmatched risk-scoring accuracy. To solve this problem, I am trying to create a layer of API endpoints so that all communication happens from client phone to ejabberd server via API layer. This works fine for now, but later I might want to move to MQTT based custom solution for chat replacing Ejabberd and that will force all my app users to compulsorily update their App, since app right now has in its source code stored URL of Ejabberd Server and directly communicates to it. Now using smack library on Android, I can connect and message other users via Ejabberd server I setup on my cloud. You thus need to change ejabberd configuration authmethod to replace internal authentication with sql: authmethod: sql If you restart ejabberd, it should connect to your database for authentication. In the backend hosted on cloud, I have setup an Ejabberd Server. If you decide to store user password in ejabberd, you need to tell ejabberd to use MySQL instead of internal database for authentication. I am trying to build a WhatsApp like chatting app on Android.
0 Comments
Leave a Reply. |