about summary refs log tree commit diff stats
path: root/jsonrpc.el
diff options
context:
space:
mode:
authorDarren Bane <dbane@tilde.institute>2020-05-09 07:46:43 -0400
committerDarren Bane <dbane@tilde.institute>2020-05-09 07:46:43 -0400
commit5eba13b70414e1a40ef2418978082c6e4ac37c19 (patch)
treeb8aa2703d575ba1ef573c198410991c80330d57b /jsonrpc.el
parent8dc0f67a0d97f0c21fd039f348a73bac9f6f1afc (diff)
parenta124a431df948e6a1c8bd670a7ae0d65ec9fa2af (diff)
downloadlsp-5eba13b70414e1a40ef2418978082c6e4ac37c19.tar.gz
Merge branch 'master' of /home/dbane/public_repos/lsp
Diffstat (limited to 'jsonrpc.el')
-rw-r--r--jsonrpc.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/jsonrpc.el b/jsonrpc.el
new file mode 100644
index 0000000..394af1e
--- /dev/null
+++ b/jsonrpc.el
@@ -0,0 +1,8 @@
+(require 'jsonrpc)
+(defvar *conn* (make-instance 'jsonrpc-process-connection
+			      :process (lambda ()
+					 (open-network-stream
+					  "JSONRPC" nil
+					  "localhost" 8192))))
+(jsonrpc-request *conn* :subtract '(:l 42 :r 12))
+(jsonrpc-notify *conn* :quit '())