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