Xmpp4Js is an XMPP client library written in pure Javascript. It connects to a server using BOSH (XEP-0124, 0206) Binding or Script Syntax. HTTP Binding This method uses XmlHttpRequests to get and receive packets from a BOSH implementation on the same domain as the connecting site. The only way to run in BOSH mode is to serve your site from the same domain as the BOSH implementation (same-origin p