hookRPC
This commit is contained in:
@@ -27,7 +27,7 @@ Logger.configure({
|
||||
})
|
||||
const logger = Logger.getLogger("admin")
|
||||
|
||||
type hookRpc = { type: 'hook', generator: (socket) => Function, unhook:(uid:string)=>Promise<ErrorResponse|SuccessResponse>}
|
||||
type hookRPC = { type: 'hook', generator: (socket) => Function, unhook:(uid:string)=>Promise<ErrorResponse|SuccessResponse>}
|
||||
type unhookRPC = { type: 'unhook', fn: Function}
|
||||
type callRPC = { type: 'call', fn: Function}
|
||||
|
||||
@@ -35,7 +35,7 @@ export type rpcInfo = {
|
||||
owner: string,
|
||||
name: string,
|
||||
args: string,
|
||||
info: hookRpc | unhookRPC | callRPC
|
||||
info: hookRPC | unhookRPC | callRPC
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user