Skip to content

Commit 7c06992

Browse files
authored
Merge pull request #10 from debchy/master
Adding error call back function with sendIQ()
2 parents 0ab80c2 + 5e628b9 commit 7c06992

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/strophe.mam.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ Strophe.addConnectionPlugin('mam', {
5555
return this._c.sendIQ(iq, function(){
5656
_c.deleteHandler(handler);
5757
onComplete.apply(this, arguments);
58-
});
58+
},
59+
function(err){
60+
//error callBack function
61+
console.log("Error Response from server:", err);
62+
});
5963
}
6064
});

0 commit comments

Comments
 (0)