trackedgames ( "command" "gameid" )
Returns or modifies the list of tracked games for the game ZMQ interface.
If called without arguments, the list of tracked games is returned. Otherwise, the given game is added or removed from the list.
Arguments:
1. command (string, optional) Can be "add" or "remove"
2. gameid (string, optional) The game ID to add or remove
Result (if called without arguments):
[ (json array)
"str", (string) currently tracked game ID
...
]
Result (if called with arguments):
null (json null)
Examples:
> spacexpanse-cli trackedgames
> spacexpanse-cli trackedgames "add" "huc"
> spacexpanse-cli trackedgames "remove" "huc"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "trackedgames", "params": []}' -H 'content-type: text/plain;' http://127.0.0.1:11998/
[
{
"name": "command",
"detailsLines": [],
"properties": [
"string",
"optional"
],
"description": "Can be \"add\" or \"remove\""
},
{
"name": "gameid",
"detailsLines": [],
"properties": [
"string",
"optional"
],
"description": "The game ID to add or remove"
}
]