Dispatcher
ServerDispatcher
run(path, executor, text)
Executes a command.
Parameters:
path- The command’s pathargs- The arguments to pass to the commandexecutor- The command’s executor
Returns:
A Promise that resolves when the command has been executed. The value contained in the Promise is
a CommandContext instance containing the execution result.
ClientDispatcher
run(path, text)
Executes a command.
If the path points to a server command, the command will be executed on the server.
Parameters:
path- The command’s pathargs- The arguments to pass to the command
Returns:
A Promise that resolves when the command has been executed. The value contained in the Promise is
a HistoryEntry object containing the command’s response and the time it was executed.