|
@@ -8,7 +8,7 @@ import { Socket } from "dgram";
|
8
|
8
|
const add = (...args:number[]) => {return args.reduce((a,b)=>a+b, 0)}
|
9
|
9
|
function makeServer(){
|
10
|
10
|
let subcallback
|
11
|
|
- return new RPCServer<{ topic: string }>(21000, [{
|
|
11
|
+ return new RPCServer<{ topic: string }>(21010, [{
|
12
|
12
|
name: "test",
|
13
|
13
|
exportRPCs: () => [
|
14
|
14
|
{
|
|
@@ -109,7 +109,7 @@ describe('RPCSocket', () => {
|
109
|
109
|
|
110
|
110
|
before(async() => {
|
111
|
111
|
server = makeServer()
|
112
|
|
- client = new RPCSocket(21000, "localhost")
|
|
112
|
+ client = new RPCSocket(21010, "localhost")
|
113
|
113
|
return await client.connect()
|
114
|
114
|
})
|
115
|
115
|
|
|
@@ -178,7 +178,7 @@ describe('It should do unhook', () => {
|
178
|
178
|
let server: RPCServer<{topic: string}>
|
179
|
179
|
|
180
|
180
|
before(async() => {
|
181
|
|
- server = new RPCServer<{ topic: string }>(21000, [{
|
|
181
|
+ server = new RPCServer<{ topic: string }>(21010, [{
|
182
|
182
|
name: "test",
|
183
|
183
|
exportRPCs: () => [{
|
184
|
184
|
name: 'subscribe',
|
|
@@ -199,7 +199,7 @@ describe('It should do unhook', () => {
|
199
|
199
|
closeHandler: (socket) => { },
|
200
|
200
|
errorHandler: (socket, err) => { throw err }
|
201
|
201
|
})
|
202
|
|
- client = new RPCSocket(21000, "localhost")
|
|
202
|
+ client = new RPCSocket(21010, "localhost")
|
203
|
203
|
return await client.connect()
|
204
|
204
|
})
|
205
|
205
|
|