Function: jsonrpc--reply
jsonrpc--reply is a byte-compiled function defined in jsonrpc.el.gz.
Signature
(jsonrpc--reply CONNECTION ID METHOD &key (RESULT nil RESULT-SUPPLIED-P) (ERROR nil ERROR-SUPPLIED-P))
Documentation
Reply to CONNECTION's request ID with RESULT or ERROR.
Source Code
;; Defined in /usr/src/emacs/lisp/jsonrpc.el.gz
(cl-defun jsonrpc--reply
(connection id method &key (result nil result-supplied-p) (error nil error-supplied-p))
"Reply to CONNECTION's request ID with RESULT or ERROR."
(apply #'jsonrpc-connection-send connection
`(:id ,id
,@(and result-supplied-p `(:result ,result))
,@(and error-supplied-p `(:error ,error))
:method ,method)))