Provides information on the result of a command.
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(String subject, caplin.streamlink.CommandErrorEvent commandErrorEvent)
The command failed or is in an unknown state. |
|
void
onCommandOk(String subject)
The command was successful. |
►
caplin.streamlink.CommandListener()
►
void
onCommandError(String subject, caplin.streamlink.CommandErrorEvent commandErrorEvent)
The command failed or is in an unknown state.
String | subject | The subject of the command. |
caplin.streamlink.CommandErrorEvent | commandErrorEvent | Provides error information for commands. |
►
void
onCommandOk(String subject)
The command was successful. Implementing this method is optional.
String | subject | The subject of the command. |