[ejabberd] can't connect to ejabbered server from browser
mremond at process-one.net
Mon Feb 18 11:36:54 MSK 2019
> On 18 Feb 2019, at 04:52, austin alozie <aatehilla at gmail.com> wrote:
> i am building a phonegap chatting app. i have been trying to connect to an ejabbered server hosted on digital ocean.
> when ever i try to connect from the browser, the logfile keeps showing "syntax error not well formed xml".
> The browser console then show "net::ERR_INVALID_HTTP_RESPONSE”.
You need to use an XMPP library like Strophe, for example, ensure that either Websocket or Bosh is enabled on ejabberd and connect on the Websocket or Bosh HTTP endpoint of ejabberd.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3892 bytes
Desc: not available
More information about the ejabberd