-
Notifications
You must be signed in to change notification settings - Fork 40
Description
This is part of the quickfix documentation:
toApp is a callback for application messages that are being sent to a counterparty. If you throw a DoNotSend exception in this function, the application will not send the message. This is mostly useful if the application has been asked to resend a message such as an order that is no longer relevant for the current market. Messages that are being resent are marked with the PossDupFlag in the header set to true; If a DoNotSend exception is thrown and the flag is set to true, a sequence reset will be sent in place of the message. If it is set to false, the message will simply not be sent. Notice that the FIX::Message is not const. This allows you to add fields to an application message before it is sent out.
I want to create a DoNotSend exception in my toApp callback, but I do not know how to accomplish that. Is that possible to do with nodejs nan?