Function: eca--get-message-type
eca--get-message-type is a natively compiled function defined in
eca.el.
Signature
(eca--get-message-type JSON-DATA)
Documentation
Get the message type from JSON-DATA.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca.el
(defun eca--get-message-type (json-data)
"Get the message type from JSON-DATA."
(if (plist-member json-data :id)
(if (plist-member json-data :error)
'response-error
(if (plist-member json-data :method)
'request
'response))
'notification))