4
votes

I'm trying to integrate chat functionality and features in to existing node.js app (Expressjs) that is consumed by the native mobile apps (iOS and Android). One way is to use socket.io and provide chat functionality but ejabberd is obviously with more chat features such as group chat and so on. So, my question is if all the business logic, user registration and authentication is within node.js app, how can I connect or integrate to ejabberd server. The mobile clients will use RESTful APIs to connect to the nodejs app server.

  1. How to connect two servers and how to exchange info? IS it Strophe.js? didn't find a reputable npm library.
  2. Do mobile clients needs to connect to both servers? meaning nodejs for user login, etc. and ejabberd for actual chat conversations?

Any help appreciated it - I'm installing the servers and trying to integrate them...

Thanks!

1
I am stuck with the same problem. Did you get a solution?Jaseem Abbas

1 Answers

1
votes

You likely will use backend link between ejabberd and NodeJS, not XMPP directly. You have many options: ejabberd custom module, ejabberd XMLRPC API, Database sharing are example of possible approaches.