help prs
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { Server } from '../src/Backend'
|
||||
|
||||
const testServer = new Server(20000, [{
|
||||
new Server(20000, [{
|
||||
name: "HelloWorldRPCGroup",
|
||||
publicRPCs: () => [],
|
||||
localRPCs: () => [{
|
||||
|
||||
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user