[ejabberd] can't connect to ejabbered server from browser

Mickaël Rémond 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:
> Hi,
> 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.

Mickaël Rémond

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3892 bytes
Desc: not available
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20190218/aaaaa312/attachment.bin>

More information about the ejabberd mailing list