Defines the interface that you should implement to receive information on the result of a command.
For more about commands, see caplin.streamlink.CommandSubscription.
A trivial implementation would be as follows :
streamLink.publishToSubject("/SUBJECT", fieldData, {
onCommandError: function(subject, commandErrorEvent) {
console.log("Publish Error : " + commandErrorEvent.getError());
},
onCommandOk: function(subject) {
console.log("Publish to " + subject + " Succesful");
}
}, null);
Attributes | Name and Description |
---|---|
|
caplin.streamlink.CommandListener()
|
Attributes | Name and Description |
---|---|
|
void
onCommandError( subject, commandErrorEvent)
* Callback invoked when a command failed or is an unknown state. |
|
void
onCommandOk( subject)
* Callback invoked when a command was successful. |
►
caplin.streamlink.CommandListener()
►
void
onCommandError( subject, commandErrorEvent)
*
Callback invoked when a command failed or is an unknown state.
* *@param {String} subject The subject of the command. *@param {caplin.streamlink.CommandErrorEvent} commandErrorEvent Information about the command error.subject | ||
commandErrorEvent |
►
void
onCommandOk( subject)
*
Callback invoked when a command was successful.
* *@param {String} subject The subject of the command.subject |