Fraunhofer-IIS / libjapi

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.
MIT License
3 stars 1 forks source link

Provide command to verify connection status #36

Open fraunhofer-iis-bot opened 3 years ago

fraunhofer-iis-bot commented 3 years ago

In GitLab by @jannismain on May 19, 2021, 15:33

Rationale

A ping-like command is required to test, whether

This 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:

{
    "japi_request": "japi_ping"
}

Response:

{
    "japi_response": "japi_ping",
    "data": {
        "success": true
    }
}

Inspiration

This addition was inspired by Interstellar's test_connection command