X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/fac241ea69aa2a657ddcd51365c5517d13ce2a0d..e867c57af8f7582ed7307ea118b76f92a483f465:/man/signal-cli-jsonrpc.5.adoc diff --git a/man/signal-cli-jsonrpc.5.adoc b/man/signal-cli-jsonrpc.5.adoc index 0a2ed950..ff709f31 100644 --- a/man/signal-cli-jsonrpc.5.adoc +++ b/man/signal-cli-jsonrpc.5.adoc @@ -5,6 +5,7 @@ vim:set ts=4 sw=4 tw=82 noet: :quotes.~: = signal-cli-jsonrpc (5) +:doctype: manpage == Name @@ -76,6 +77,22 @@ The `method` field is the command name and the parameters can be sent as the `pa `--attachment ATTACH` becomes `"attachment":"ATTACH"` +=== Additional JSON-RPC commands + +For receiving message additional commands are provided in JSON-RPC mode with `--receive-mode=manual`. + +==== subscribeReceive + +Tells the daemon to start receiving messages, returns the subscription id as a single integer value in the result. + +==== unsubscribeReceive + +Stop a previous subscription for receiving messages. + +Params: + +- `subscription`: the subscription id returned by `subscribeReceive` + == Examples REQUEST: `{"jsonrpc":"2.0","method":"listGroups","id":"5"}` RESPONSE: `{"jsonrpc":"2.0","result":[...],"id":"5"}`