about summary refs log tree commit diff stats
path: root/jsonrpc.el
diff options
context:
space:
mode:
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 '())