testing RPC over Unix socket + updated docs

This commit is contained in:
Maxime Van Hees
2025-10-23 15:42:05 +02:00
parent 219e612eca
commit 6ae5d6f4f9
2 changed files with 2 additions and 10 deletions

View File

@@ -158,10 +158,4 @@ sudo socat -d -d -t 5 - UNIX-CONNECT:/tmp/herodb.sock
2) Paste a framed JSON-RPC request (Content-Length header, then a blank line, then the JSON body). For example to call hero_listDatabases:
Content-Length: <LEN-BYTES-OF-JSON>
{"jsonrpc":"2.0","id":3,"method":"hero_listDatabases","params":[]}
Notes:
- Replace <LEN-BYTES-OF-JSON> with the byte-length of the exact JSON payload you paste. There must be an empty line between the header and the JSON.
- The response will appear in the same terminal, also framed with Content-Length.
{"jsonrpc":"2.0","id":3,"method":"hero_listDatabases","params":[]}