libjapi is a universal JSON to C API library. It receives newline-delimited JSON (NDJSON) messages via TCP and calls registered C functions. A JSON response is returned for each request. Furthermore, it is also possible to create push services, which asynchronously push JSON messages to the clients subscribed to them.
In GitLab by @jannismain on May 19, 2021, 15:33
Rationale
A
ping
-like command is required to test, whetherThis could also be used to check, whether the server is still alive, in cases where a server status is reported.
Story
Example
The messages could look like this:
Request:
Response:
Inspiration
This addition was inspired by Interstellar's
test_connection
command