Add RPC example to README

This commit is contained in:
netkas 2024-09-02 20:34:47 -04:00
parent 77228532a0
commit f74977afe6

View file

@ -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 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. 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. 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) > Returns: Boolean (true)
RPC Example:
```text
SEND: {"id": "3bb935c6", "method": "ping"}
REC: {"id": "3bb935c6", "result": true}
```
## Protected ## Protected