Search code examples
xmppconverse.js

How to configure BOSH server to support my own XMPP server?


I set up a BOSH server using node-xmpp-bosh and configured converse.js (a javascript XMPP client) to use the BOSH url I set up, I tried log in with my jabber.org account on converse.js and all worked fine.

Now I need to make this work with a private XMPP server. Assume that the XMPP server is at chat.mysite.com:5222, a JID on the server is [email protected]. How do I configure the BOSH server so that it connects to chat.mysite.com:5222 when I try to log in with [email protected] on converse.js?


Solution

  • You should add DNS SRV record _xmpp-client._tcp.mysite.com which should point to chat.mysite.com 5222