mirror of
https://github.com/AsamK/signal-cli.git
synced 2026-08-31 06:26:33 +00:00
Updated JSON service (markdown)
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:
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user