Updated JSON service (markdown)

John Freed 2021-09-01 17:36:21 +02:00
parent 7ae4e0e961
commit 5dd76350ce

@ -7,7 +7,7 @@ Note that for the `JsonRpc` command, `--output=json` is the default.
It is possible to communicate with the server over the network using named pipes. For example, the following commands set up a JSON RPC signal-cli server listening on local port 9182:
mkfifo sigsocket
nc -l -p 9182 <sigsocket | signal-cli --output=json -u +33123456789 jsonRpc >sigsocket &
(while true; do nc -l -p 9182 <sigsocket; done) | signal-cli --output=json -u +33123456789 jsonRpc >sigsocket &
To communicate with the server from the same machine (localhost), issue the command: