Function: jsonrpc-convert-from-endpoint
jsonrpc-convert-from-endpoint is a byte-compiled function defined in
jsonrpc.el.gz.
Signature
(jsonrpc-convert-from-endpoint CONNECTION REMOTE-MESSAGE)
Documentation
Convert JSONRPC-esque REMOTE-MESSAGE to a plist.
REMOTE-MESSAGE is a plist read with json-parse.
Return a plist of jsonrpc.el's internal representation of a JSONRPC message.
Implementations
(jsonrpc-convert-from-endpoint S REMOTE-MESSAGE) in `jsonrpc.el'.
Undocumented
Source Code
;; Defined in /usr/src/emacs/lisp/jsonrpc.el.gz
;;; API optional
(cl-defgeneric jsonrpc-convert-from-endpoint (connection remote-message)
"Convert JSONRPC-esque REMOTE-MESSAGE to a plist.
REMOTE-MESSAGE is a plist read with `json-parse'.
Return a plist of jsonrpc.el's internal representation of a
JSONRPC message."
;; TODO: describe representations and serialization in manual and
;; link here.
(:method (_s remote-message)
(cl-loop for (k v) on remote-message by #'cddr
unless (eq k :jsonrpc-json)
collect k and collect v)))