stuff
This commit is contained in:
+5
-6
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user