Class
zebkit.io.JRPC
extends <zebkit.io.Service> |
<zebkit.io> |
The class is implementation of JSON-RPC remote service connector.
// create JSON-RPC connector to a remote service that
// has three remote methods
var service = new zebkit.io.JRPC("json-rpc.com", [
"method1", "method2", "method3"
]);
// synchronously call remote method "method1"
service.method1();
// asynchronously call remote method "method1"
service.method1(function(res) {
...
});
zebkit.io.JRPC
(url, methods
)
Parameters: