Skip to content

Commit

Permalink
Merge pull request #10 from debchy/master
Browse files Browse the repository at this point in the history
Adding error call back function with sendIQ()
  • Loading branch information
jcbrand authored May 27, 2019
2 parents 0ab80c2 + 5e628b9 commit 7c06992
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/strophe.mam.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ Strophe.addConnectionPlugin('mam', {
return this._c.sendIQ(iq, function(){
_c.deleteHandler(handler);
onComplete.apply(this, arguments);
});
},
function(err){
//error callBack function
console.log("Error Response from server:", err);
});
}
});

0 comments on commit 7c06992

Please sign in to comment.