Skip to content

Type Alias: RpcHandler ​

ts
type RpcHandler = (rpc, ctx) => 
  | RpcHandlerResult
| Promise<RpcHandlerResult>;

Defined in: netconf/src/testing/fake-server.ts:77

Answers each <rpc> the server receives, given the <rpc> element. See RpcHandlerResult for what it can return, and Replies.

Parameters ​

rpc ​

XmlElement

ctx ​

RpcHandlerContext

Returns ​

| RpcHandlerResult | Promise<RpcHandlerResult>

Released under the MIT Licence.