Preparing search index...
The search index is not available
delphirtl
delphirtl
JSONRPCServer
Class JSONRPCServer<ServerParams>
Type Parameters
ServerParams
=
void
Index
Constructors
constructor
Properties
map
Error
ToJSONRPCError
Response
Methods
add
Method
add
Method
Advanced
apply
Middleware
has
Method
receive
receiveJSON
remove
Method
Constructors
constructor
new JSONRPCServer
<
ServerParams
>
(
options
?
)
:
JSONRPCServer
<
ServerParams
>
Type Parameters
ServerParams
=
void
Parameters
Optional
options
:
JSONRPCServerOptions
Returns
JSONRPCServer
<
ServerParams
>
Properties
map
Error
ToJSONRPCError
Response
map
Error
ToJSONRPCError
Response
:
(
(
id
:
JSONRPCID
,
error
:
any
)
=>
JSONRPCErrorResponse
)
Methods
add
Method
add
Method
(
name
,
method
)
:
void
Parameters
name
:
string
method
:
SimpleJSONRPCMethod
<
ServerParams
>
Returns
void
add
Method
Advanced
add
Method
Advanced
(
name
,
method
)
:
void
Parameters
name
:
string
method
:
JSONRPCMethod
<
ServerParams
>
Returns
void
apply
Middleware
apply
Middleware
(
...
middlewares
)
:
void
Parameters
Rest
...
middlewares
:
JSONRPCServerMiddleware
<
ServerParams
>
[]
Returns
void
has
Method
has
Method
(
name
)
:
boolean
Parameters
name
:
string
Returns
boolean
receive
receive
(
request
,
serverParams
?
)
:
PromiseLike
<
null
|
JSONRPCResponse
>
Parameters
request
:
JSONRPCRequest
Optional
serverParams
:
ServerParams
Returns
PromiseLike
<
null
|
JSONRPCResponse
>
receive
(
request
,
serverParams
?
)
:
PromiseLike
<
null
|
JSONRPCResponse
|
JSONRPCResponse
[]
>
Parameters
request
:
JSONRPCRequest
|
JSONRPCRequest
[]
Optional
serverParams
:
ServerParams
Returns
PromiseLike
<
null
|
JSONRPCResponse
|
JSONRPCResponse
[]
>
receiveJSON
receiveJSON
(
json
,
serverParams
?
)
:
PromiseLike
<
null
|
JSONRPCResponse
|
JSONRPCResponse
[]
>
Parameters
json
:
string
Optional
serverParams
:
ServerParams
Returns
PromiseLike
<
null
|
JSONRPCResponse
|
JSONRPCResponse
[]
>
remove
Method
remove
Method
(
name
)
:
void
Parameters
name
:
string
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
map
Error
ToJSONRPCError
Response
Methods
add
Method
add
Method
Advanced
apply
Middleware
has
Method
receive
receiveJSON
remove
Method
delphirtl
Loading...