| 123456789101112131415161718 | import { Server } from '../src/Server'
import {Client} from '../src/Client'
new Server(20000, [{
    name: "HelloWorldRPCGroup",
    publicRPCs: () => [],
    localRPCs: () => [{
        type: 'Call',
        name: 'echo',
        call: async (s:string) => s,
    }]
}])
const caller = new Client(20000, 'localhost')
caller.connect().then(_ => {
    caller.info().then(console.log)
    caller["HelloWorldRPCGroup"].echo("x").then(console.log)
})
 |