The XEP-0050 Ad-Hoc Commands API
This API lets you discover ad-hoc commands available for an entity in the XMPP network.
- Source:
Methods
(static) fetchCommandForm()
- Source:
(static) fetchCommandForm()
(static) getCommands(to_jid)
Parameters:
Name | Type | Description |
---|---|---|
to_jid |
String |
- Source:
(static) getCommands(to_jid)
Parameters:
Name | Type | Description |
---|---|---|
to_jid |
String |
(static) runCommand(jid, sessionid, action, node, inputs)
Parameters:
Name | Type | Description |
---|---|---|
jid |
String | |
sessionid |
String | |
action |
'execute' | 'cancel' | 'prev' | 'next' | 'complete' | |
node |
String | |
inputs |
Array.<{string: string}> |
- Source:
(static) runCommand(jid, sessionid, action, node, inputs)
Parameters:
Name | Type | Description |
---|---|---|
jid |
String | |
sessionid |
String | |
action |
'execute' | 'cancel' | 'prev' | 'next' | 'complete' | |
node |
String | |
inputs |
Array.<{string: string}> |