Caplin Trader 5.1.0

Interface: module:ct-services/messaging/PublishListener

module:ct-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:ct-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.