"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const RPCSocketServer_1 = require("../src/backend/RPCSocketServer"); //@ts-ignore const RPCSocket_1 = require("../src/frontend/RPCSocket"); new RPCSocketServer_1.RPCSocketServer(20000, [{ name: "HelloWorldRPCGroup", exportPublicRPCs: () => [], exportRPCs: () => [{ type: 'call', name: 'echo', func: async (s) => s, }], }], "0.0.0.0"); const caller = new RPCSocket_1.RPCSocket(20000, 'localhost'); caller.connect().then(_ => { caller.info().then(console.log); caller["HelloWorldRPCGroup"].echo("x").then(console.log); });