Caplin Trader 4.7.1

Interface: module:caplin/services/messaging/PublishListener

module:caplin/services/messaging/PublishListener

Interface implemented by classes that wish to listen to publish events.

Methods

onError(sSubject, sErrorType)

Called when there is an error with the publish command.
Parameters:
Name Type Description
sSubject String The subject of the record that there was an error publishing to.
sErrorType module:caplin/services/messaging/PublishError The type of error.

onSuccess(sSubject)

Called to signify that the publish was successful.
Parameters:
Name Type Description
sSubject String The subject of the record that was successfuly published to.