kuberpc-node 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/kuberpc.js +3 -3
- package/package.json +1 -1
package/dist/kuberpc.js
CHANGED
|
@@ -18,9 +18,9 @@ const axios_1 = __importDefault(require("axios"));
|
|
|
18
18
|
const msgpackr_1 = require("msgpackr");
|
|
19
19
|
const errors_1 = require("./errors");
|
|
20
20
|
// Wire format (positional arrays - avoids encoding key strings on every call):
|
|
21
|
-
// request
|
|
22
|
-
// response
|
|
23
|
-
// response
|
|
21
|
+
// request: [method: string, args: object]
|
|
22
|
+
// response: [null, result] on success
|
|
23
|
+
// response: [errorMsg: string] on error
|
|
24
24
|
const DEFAULT_RPC_PORT = 7749;
|
|
25
25
|
class ServiceProxy {
|
|
26
26
|
constructor(name, rpc) {
|