0
votes

I'm trying to create an XMPP HTTP gateway in nodejs using node-xmpp-client and adastra.re as an xmpp server. I've never worked with xmpp before and I'm having trouble configuring the client.

var client = new XMPP.Client({ jid: ???, password: '***', host: "https://adastra.re/" bosh: ???? })

What exactly are jid and bosh? I initially thought that jid was an email of the client you want to log in as and your password would be your password for the email. But that appears to not be the case. And I've been having trouble understanding what bosh is too. Any help would be appreciated.

1

1 Answers

0
votes

XMPP server does not understand HTTP protocol. Bosh will work as a mediator between your your HTTP request and XMPP server. JID is the user id registered in you XMPP server. For example my XMPP server is AdAstre.re , it could be [email protected].

I hope that helps.