Hello I need to create a local xmpp server using node
MattJ
I think node-xmpp has some server stuff in it?
MattJ
But it's not complete server
sumit
https://www.npmjs.com/package/node-xmpp-server I tried this but none of the links are working
MattJ
Fun, it redirected me to a dating website
sumit
its working fine over here
sumit
https://github.com/xmppjs/xmpp.js
as u said node-xmpp but it doesnt have anything related to server in there packages
MattJ
I mean the links to node-xmpp.org
MattJ
Out of interest, why do you need this?
MattJ
There are many server implementations existing already
sumit
so basically i am building a multiprotocol server
sumit
mqtt
sumit
coap and xmpp
sumit
and for this i am using Node-RED
sumit
https://nodered.org/
MattJ
Possibly you can do the same in other servers, but you could set up Prosody and mod_component, and then use https://github.com/xmppjs/xmpp.js/tree/master/packages/component
sumit
now node red got libraries for coap nd mqtt but not for xmpp
MattJ
it will be waaaay easier than writing all the XMPP server stuff from scratch
Zash
Pretty sure I found an XMPP plugin for it, tho it connected as a client
Alexhas left
Danielhas left
sumit
MattJ thanks for the link , but I already have coded my client ... jsut want to code a simple server
MattJ
I just don't see why you would code a server when many exist already
sumit
i am coding a server which could process aa mqtt request, an coap request and xmpp requests simulteniously
zinid
this will be quite brutal task
MattJ
Prosody and ejabberd both already support XMPP and MQTT
MattJ
and I doubt COAP is hard in either of them (they both support HTTP already too)
MattJ
I mean, do what you want, but it just seems a waste of time unless you're doing it for educational purposes
sumit
this is like a project
MattJ
at which point you don't want something existing
Zash
coap is http semantics with cbor encoding, no? there's at least two cbor libraries for Lua (I wrote one of them)
zinid
Zash, yes, kind
zinid
kinda
sumit
educational purpose only. this will not be on high level like ejabberd or any other