This commit is contained in:
Daniel Hübleitner
2019-09-18 05:19:42 +02:00
parent 3cfbb3558f
commit ea18b22463
31 changed files with 174 additions and 1041 deletions
+5 -6
View File
@@ -1,15 +1,14 @@
import { Server } from '../src/Server'
//@ts-ignore
import {Client} from '../src/Client'
new Server(20000, [{
name: "HelloWorldRPCGroup",
exportPublicRPCs: () => [],
exportRPCs: () => [{
type: 'call',
publicRPCs: () => [],
localRPCs: () => [{
type: 'Call',
name: 'echo',
func: async (s:string) => s,
}],
call: async (s:string) => s,
}]
}])
const caller = new Client(20000, 'localhost')