help prs
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
import { Server } from '../src/Backend'
|
import { Server } from '../src/Backend'
|
||||||
|
|
||||||
const testServer = new Server(20000, [{
|
new Server(20000, [{
|
||||||
name: "HelloWorldRPCGroup",
|
name: "HelloWorldRPCGroup",
|
||||||
publicRPCs: () => [],
|
publicRPCs: () => [],
|
||||||
localRPCs: () => [{
|
localRPCs: () => [{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { Client } from '../src/Frontend'
|
import { Client } from '../src/Frontend'
|
||||||
|
|
||||||
const testClient = new Client(20000, 'localhost')
|
const client = new Client(20000, 'localhost')
|
||||||
testClient.connect().then(_ => {
|
client.connect().then(_ => {
|
||||||
testClient.info().then(console.log)
|
client.info().then(console.log)
|
||||||
testClient["HelloWorldRPCGroup"].echo("x").then(console.log)
|
client["HelloWorldRPCGroup"].echo("x").then(console.log)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user