This commit is contained in:
Daniel Hübleitner
2019-09-18 13:22:25 +02:00
parent b39b9347ed
commit 968885767a
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import { Server } from '../src/Backend'
const testServer = new Server(20000, [{
new Server(20000, [{
name: "HelloWorldRPCGroup",
publicRPCs: () => [],
localRPCs: () => [{
+4 -4
View File
@@ -1,7 +1,7 @@
import { Client } from '../src/Frontend'
const testClient = new Client(20000, 'localhost')
testClient.connect().then(_ => {
testClient.info().then(console.log)
testClient["HelloWorldRPCGroup"].echo("x").then(console.log)
const client = new Client(20000, 'localhost')
client.connect().then(_ => {
client.info().then(console.log)
client["HelloWorldRPCGroup"].echo("x").then(console.log)
})