From f74977afe6f75db78bce39f6c3e0a296607d395e Mon Sep 17 00:00:00 2001 From: netkas Date: Mon, 2 Sep 2024 20:34:47 -0400 Subject: [PATCH] Add RPC example to README --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index becacbb..4d58ec1 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,7 @@ example.com. IN TXT "socialbox=socialbox.example.com" ``` Here, socialbox is the key, and the value is the URL of the Socialbox instance. The client resolves the main domain to -retrieve the TXT record, which then provides the URL of the Socialbox server.The client uses this URL to establish a +retrieve the TXT record, which then provides the URL of the Socialbox server. The client uses this URL to establish a connection to the Socialbox server. This process allows the client to dynamically discover the server URL. The domain name is usually resolved from a given peer address. @@ -406,6 +406,13 @@ Ping allows you to test the connection to the server, this method doesn't accept > Returns: Boolean (true) +RPC Example: + +```text +SEND: {"id": "3bb935c6", "method": "ping"} +REC: {"id": "3bb935c6", "result": true} +``` + ## Protected