registerMethod(server, name, params, f)This method registers a method with server. The name parameter is the name of the method that will be exposed in JSON-RPC requests, and f is the function that will be called when the method is invoked. The optional params argument is a list of expected parameter names for the method. If provided, it helps validate the parameters in incoming requests. The function should accept the parameters passed in the request and return the result to be sent back in the response.
|
|
|
|
|
To see a list of registered methods for a given server, run methods(JSONRPCServer).
|
If you would like to deregister a method, then you may use remove(HashTable,Thing).
|
|
The object registerMethod is a method function.
The source of this document is in JSONRPC.m2:301:0.