Constructor
new Command(msgId, name, params)
Parameters:
Name | Type | Description |
---|---|---|
msgId |
number | Message ID unique identifying this message. |
name |
string | Command name. |
params |
Object.<string, ?> | Command parameters. |
- Source:
Methods
onresponse(resp)
Calls the error- or result handler associated with this command. This function can be replaced with a custom response handler.
Parameters:
Name | Type | Description |
---|---|---|
resp |
Response | The response to pass on to the result or error to the {@code onerror} or {@code onresult} handlers to. |
- Source: