<div dir="ltr">There's also an older version of node-xmpp which can be browserified and run directly in the browser. Version 1.0.0 is getting closer to release (it is available through npm) but currently browserify is broken - probably my fault.<div>

<br></div><div>Lloyd</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">_____________________________________________________<br><br>Steven Lloyd Watkin<div>Software Engineer</div><div>PHP ::: Java ::: Ruby ::: Node.js ::: XMPP<br>

<a href="mailto:lloyd@evilprofessor.co.uk" target="_blank">lloyd@evilprofessor.co.uk</a> (email+jid) ::: <a href="http://www.evilprofessor.co.uk" target="_blank">http://www.evilprofessor.co.uk</a><br>Facebook / Twitter / Flickr: lloydwatkin<br>

<br>Organiser of WORLD RECORD breaking charity event:<div>Scuba Santas ::: <a href="http://www.scuba-santas.co.uk" target="_blank">http://www.scuba-santas.co.uk</a><br>Supporting the RNLI & DDRC - 15th December 2013 - NDAC, Chepstow</div>

</div></div></div>
<br><br><div class="gmail_quote">On 1 September 2014 14:51, Hund, Johannes <span dir="ltr"><<a href="mailto:johannes.hund@siemens.com" target="_blank">johannes.hund@siemens.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">







<div lang="DE" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi Christopher,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">looks like a sasl  Problem.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I recently whipped something up using strophe.js and found this example quite useful:<u></u><u></u></span></p>


<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><a href="https://github.com/strophe/strophejs/blob/master/examples/echobot.js" target="_blank">https://github.com/strophe/strophejs/blob/master/examples/echobot.js</a><u></u><u></u></span></p>


<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Worked out of the box with openfire.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Cheers,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Johannes<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:35.4pt"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> JDev [mailto:<a href="mailto:jdev-bounces@jabber.org" target="_blank">jdev-bounces@jabber.org</a>]
<b>Im Auftrag von </b>Christopher Fortmüller<br>
<b>Gesendet:</b> Montag, 1. September 2014 15:02<br>
<b>An:</b> <a href="mailto:jdev@jabber.org" target="_blank">jdev@jabber.org</a><br>
<b>Betreff:</b> [jdev] Simple JavaScript XMPP client example<u></u><u></u></span></p>
</div><div><div class="h5">
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Hi all,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">I am running an ejabberd server for testing purposes.
<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">I am now looking for a very basic example of a working JavaScript/html client to log in to this server.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">I have tried several JavaScript libraries so far, unfortunately, to no avail. Would also appreciate input on my post on stackoverflow, if anyone has any:
<a href="http://stackoverflow.com/questions/25601350/ejabberd-authentication-configuration-for-plain-or-md5-digest-for-javascript-con" target="_blank">
http://stackoverflow.com/questions/25601350/ejabberd-authentication-configuration-for-plain-or-md5-digest-for-javascript-con</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">I tried connecting with jQueryXmpp in that case.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Thanks for any and all help,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Cheers,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Chris<u></u><u></u></p>
</div>
</div>
</div></div></div>
</div>

<br>_______________________________________________<br>
JDev mailing list<br>
Info: <a href="http://mail.jabber.org/mailman/listinfo/jdev" target="_blank">http://mail.jabber.org/mailman/listinfo/jdev</a><br>
Unsubscribe: <a href="mailto:JDev-unsubscribe@jabber.org">JDev-unsubscribe@jabber.org</a><br>
_______________________________________________<br>
<br></blockquote></div><br></div>