Accept JSON formatted command via sockets

- Start ServerSocket and listen for clients
- Accept multiple JSON objects as commands
	* Send messages (single recipient / group)
	* Receive messages (minimal support)
	* Send reactions
- Support attachments embedded in JSON (base64 encoded)
This commit is contained in:
Sebastian Haas 2021-01-13 22:52:48 +01:00
parent c3c1802b4d
commit 4f3e3f9a24
No known key found for this signature in database
GPG key ID: DE43FCD0565E3C77
24 changed files with 1130 additions and 4 deletions

View file

@ -368,6 +368,16 @@ Use DBus system bus instead of user bus.
*--ignore-attachments*::
Dont download attachments of received messages.
=== TCP daemon
Run the signal-cli in daemon mode accepting commands in JSON format via a TCP socket.
Detailed information about the JSON format can be found here <https://github.com/AsamK/signal-cli/json_socket.md>
*-p*, *--port*::
Specify the listening port. Default is `6789`
*-a*, *--address*::
Bind socket to specified IP address. Default is `127.0.0.1`
== Examples
Register a number (with SMS verification)::