mirror of
https://github.com/AsamK/signal-cli.git
synced 2026-09-01 06:28:11 +00:00
Updated Json service (markdown)
parent
98a9ce1bd0
commit
c3916d2a08
@ -1,4 +1,6 @@
|
||||
signal-cli (proposed release) supports a JSON RPC server that accepts input on STDIN and replies on STDOUT. See (https://github.com/AsamK/signal-cli/discussions/679)
|
||||
signal-cli (proposed release) supports a JSON RPC server that accepts input on STDIN and replies on STDOUT. See (https://github.com/AsamK/signal-cli/discussions/679)
|
||||
|
||||
`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:
|
||||
|
||||
@ -7,7 +9,7 @@ It is possible to communicate with the server over the network using named pipes
|
||||
To communicate with the server from the same machine (localhost), issue the command:
|
||||
`nc localhost 9182`
|
||||
|
||||
Enter your requests in the required format. Be sure to include the arbitrary "id" field if you want to receive a response! The response will contain the same "id" as its last field. For example:
|
||||
It will await your entries in the required format. Be sure to include the arbitrary "id" field if you want to receive a response! The response will contain the same "id" as its last field. For example:
|
||||
|
||||
ENTRY: `{"jsonrpc":"2.0","method":"listGroups","id":"my special mark"}`
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user