node.js - Simple REST HTTP-Proxy for xmpp -
we're working on xmpp server used android app , want use xmpp-ftw , node.js contact web server through http request.
now our question: how handle specific requests react on request?
https://github.com/xmpp-ftw/xmpp-ftw
e.g.
127.0.0.1:3000/login
{ "jid": "test@evilprofessor.co.uk", "password": "password", "resource": "xmpp-ftw", "host": "127.0.0.1" }
to login server. should simple wrapper.
thank you
the problem doing xmpp on http/rest need hold session open on server each request, or re-authenticate each request later being slow.
we created on buddycloud project allowed former (https://github.com/buddycloud/buddycloud-http-api) allowed easy creation of apps using xmpp + http/rest. lose realtime aspect.
you won't rest wrapper around xmpp-ftw http like. on authentication return cookie user, keep xmpp session open , use cookie session out of storage each reload.
how plan deal realtime aspects? e.g. incoming chat? or outside of plans.
i'll happily put quite busy @ present not going high on priority list i'm afraid. please raise issue against https://github.com/xmpp-ftw/xmpp-ftw.
cheers, lloyd.
Comments
Post a Comment