Updated Json service (markdown)

John Freed 2021-08-19 22:13:39 +02:00
parent e799a2384b
commit a24f3cf988

@ -2,9 +2,10 @@ signal-cli (proposed release) supports a JSON RPC server that accepts input on
`signal-cli --output=json -u _USERNAME_ jsonRpc`
It is possible to communicate with the server over the network using named pipes. For example, the following command sets up a JSON RPC signal-cli server listening on local port 9182:
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:
`nc -l -p 9182 <sigsocket | signal-cli --output=json -u +33123456789 jsonRpc >sigsocket &`
mkfifo sigsocket
nc -l -p 9182 <sigsocket | signal-cli --output=json -u +33123456789 jsonRpc >sigsocket &
To communicate with the server from the same machine (localhost), issue the command: