diff lightstring.js @ 64:d9f5ae0b6d98

Support for DIGEST-MD5 authentication. (plugin)
author Sonny Piers <sonny.piers@gmail.com>
date Wed, 01 Feb 2012 19:47:49 +0100
parents 20da4fb67977
children 2e8fbf3bce7f
line wrap: on
line diff
--- a/lightstring.js
+++ b/lightstring.js
@@ -202,13 +202,15 @@ Lightstring.Connection.prototype = {
         }
       }
       else if (name === 'challenge') {
-
-
+        that.emit('challenge', stanza);
       }
       else if (name === 'response') {
 
 
       }
+      else if (name === 'failure') {
+        that.emit('failure', stanza);
+      }
       else if (name === 'success') {
         that.emit('success', stanza);
       }