1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 23:23:13 +02:00

Document the existence of the example JSON-RPC client.

This commit is contained in:
Sadie Powell
2025-05-04 14:42:46 +01:00
parent bb9074cbd5
commit e1f6d0ca16
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -801,6 +801,8 @@ module
* By itself this module does nothing. You should load a RPC method module like
* rpc_data which actually provides RPC methods.
*
* See docs/RPC/jsonrpc.js for an example JavaScript JSON-RPC client.
*
* IMPORTANT: this can not be loaded at the same time as the xmlrpc module.
*/
#module
+1 -1
View File
@@ -8,7 +8,7 @@ class AnopeRPC {
* Initializes a new AnopeRPC instance with the specified RPC host.
*
* @param {string} The RPC host base URL.
* @param {token} The bearer token for authorizing with the RPC token.
* @param {token} The bearer token for authorizing with the RPC interface.
*/
constructor(host, token = "") {
this.host = host;