Class
caplin.streamlink

CommandListener

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); 

Constructor Summary

Attributes Name and Description
caplin.streamlink.CommandListener()

Method Summary

Attributes Name and Description
void onCommandError(String subject, caplin.streamlink.CommandErrorEvent commandErrorEvent)

Callback invoked when a command failed or is an unknown state.

void onCommandOk(String subject)

Callback invoked when a command was successful.

Constructor Detail

caplin.streamlink.CommandListener()

Method Detail

void onCommandError(String subject, caplin.streamlink.CommandErrorEvent commandErrorEvent)

Callback invoked when a command failed or is an unknown state.

Parameters
String subject The subject of the command.
caplin.streamlink.CommandErrorEvent commandErrorEvent Information about the command error.

void onCommandOk(String subject)

Callback invoked when a command was successful.

Parameters
String subject The subject of the command.