Response Event
Fired when the class sends a response to the client.
Syntax
qbconnector.on('Response', [callback])
Callback
The 'callback' is called when the 'Response' event is emited.
function(e){ }
The argument 'e' has the following properties:
e.connectionId e.userIndex e.response
Remarks
This event will fire with the raw XML retrieved from QuickBooks and sent to the client.
The ConnectionId indicates which client connection this Request event is firing for. The UserIndex is the index of the user in the AuthorizedUser array property. Response is the QBXML Response from QuickBooks, which is being transmitted back to the client.
A UserIndex of -1 means that no matching credentials were found in the AuthorizedUsers collection.