Functions
createCommandResponse
- createCommandResponse(response: any): any
createDocumentResponse
- createDocumentResponse(request: any, response: any): any
Parameters
request: any
response: any
Returns any
createErrorResponse
- createErrorResponse(id: string, error: any): { error: {}; id: string; jsonrpc: string }
Parameters
Returns { error: {}; id: string; jsonrpc: string }
error: {}
id: string
jsonrpc: string
createGetResponse
- createGetResponse(request: any, response: any): any
Parameters
request: any
response: any
Returns any
createRequest
- createRequest(id: null | string, method: string, params: any): XapiRequest
Parameters
id: null | string
method: string
params: any
createResponse
- createResponse(id: string, result: any): { id: string; jsonrpc: string; result: any }
Parameters
Returns { id: string; jsonrpc: string; result: any }
id: string
jsonrpc: string
result: any
createSetResponse
- createSetResponse(request: any, response: any): null
Parameters
request: any
response: any
Returns null
parseFeedbackResponse
- parseFeedbackResponse(response: any): any