Error Event
This event is fired when the server sends a protocol error message.
Syntax
xmpp.on('Error', [callback])
Callback
The 'callback' is called when the 'Error' event is emited.
function(e){ }
The argument 'e' has the following properties:
e.errorCode e.description
Remarks
This is fired whenever there is a protocol error. ErrorCode will contain the error code string sent by the server. Description will contain the Xmpp class's interpretation of the code.