delphirtl • Docs
delphirtl / JSONRPCServer
• ServerParams = void
new JSONRPCServer<
ServerParams
>(options
?):JSONRPCServer
<ServerParams
>
• options?: JSONRPCServerOptions
JSONRPCServer
<ServerParams
>
node_modules/json-rpc-2.0/dist/server.d.ts:15
mapErrorToJSONRPCErrorResponse: (
id
,error
) =>JSONRPCErrorResponse
• id: JSONRPCID
• error: any
JSONRPCErrorResponse
node_modules/json-rpc-2.0/dist/server.d.ts:14
addMethod(
name
,method
):void
• name: string
• method: SimpleJSONRPCMethod
<ServerParams
>
void
node_modules/json-rpc-2.0/dist/server.d.ts:17
addMethodAdvanced(
name
,method
):void
• name: string
• method: JSONRPCMethod
<ServerParams
>
void
node_modules/json-rpc-2.0/dist/server.d.ts:20
applyMiddleware(…
middlewares
):void
• …middlewares: JSONRPCServerMiddleware
<ServerParams
>[]
void
node_modules/json-rpc-2.0/dist/server.d.ts:27
hasMethod(
name
):boolean
• name: string
boolean
node_modules/json-rpc-2.0/dist/server.d.ts:16
receive(
request
,serverParams
?):PromiseLike
<null
|JSONRPCResponse
>
• request: JSONRPCRequest
• serverParams?: ServerParams
PromiseLike
<null
| JSONRPCResponse
>
node_modules/json-rpc-2.0/dist/server.d.ts:23
receive(
request
,serverParams
?):PromiseLike
<null
|JSONRPCResponse
|JSONRPCResponse
[]>
• request: JSONRPCRequest
| JSONRPCRequest
[]
• serverParams?: ServerParams
PromiseLike
<null
| JSONRPCResponse
| JSONRPCResponse
[]>
node_modules/json-rpc-2.0/dist/server.d.ts:24
receiveJSON(
json
,serverParams
?):PromiseLike
<null
|JSONRPCResponse
|JSONRPCResponse
[]>
• json: string
• serverParams?: ServerParams
PromiseLike
<null
| JSONRPCResponse
| JSONRPCResponse
[]>
node_modules/json-rpc-2.0/dist/server.d.ts:21
removeMethod(
name
):void
• name: string
void
node_modules/json-rpc-2.0/dist/server.d.ts:18