syndicate_utils/README.md

16 lines
633 B
Markdown
Raw Normal View History

2022-06-09 01:25:45 +00:00
# Syndicate utils
2022-06-09 05:28:26 +00:00
## json_translator
Wrapper that executes a command, parses its JSON output, and asserts a Preserves conversion in an `<output …>` record.
2022-06-09 18:15:13 +00:00
## json_socket_translator
Utility to communicate with sockets that send and receive lines of JSON using `<sen-json …>` and `<recv-json …>` messages. Compatible with [mpv](https://mpv.io/), see [mpv.config-example.pr](./mpv.config-example.pr).
Do not send messages immediately to the dataspace passed `json_socket_translator`, wait until it asserts `<connected @socketPath string>`.
## msg
A utility that sends a message to $SYNDICATE_SOCK in the form `<ARGV…>`.