bump
This commit is contained in:
+3
-3
@@ -24,18 +24,18 @@ new RPCServer(20000, [{
|
||||
subcallback = callback
|
||||
return makeSubResponse()
|
||||
},
|
||||
onClose: (res:SubscriptionResponse, rpc:HookRPC) => {
|
||||
onClose: (res, rpc) => {
|
||||
console.log("Specific close handler for", rpc.name, res)
|
||||
subcallback = null
|
||||
},
|
||||
onCallback: (...args:any) => { console.log.apply(console, args) }
|
||||
onCallback: (...args) => { console.log.apply(console, args) }
|
||||
},
|
||||
function add(...args:number[]):number {return args.reduce((a,b)=>a+b, 0)},
|
||||
function triggerCallback(...messages:any[]):number {return subcallback.apply({}, messages)},
|
||||
]
|
||||
}])
|
||||
|
||||
new RPCServer<{ topic: string}>(20001, [{
|
||||
new RPCServer<{ topic: string }>(20001, [{
|
||||
name: "HelloWorldRPCGroup",
|
||||
exportRPCs: () => [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user