From 585554d9541d2bd59092c2d50c72a923298923d9 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 15 May 2023 16:02:23 -0400 Subject: [PATCH] rpc: Revise example in documentation --- doc/dev/notes/rpc-meta-draft.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/dev/notes/rpc-meta-draft.md b/doc/dev/notes/rpc-meta-draft.md index cbb4880c5..e72d1a399 100644 --- a/doc/dev/notes/rpc-meta-draft.md +++ b/doc/dev/notes/rpc-meta-draft.md @@ -814,10 +814,10 @@ The echo command will only work post-authentication. Here is an example session: ``` -C: { "id":3, "obj": "session", "method":"auth:authenticate", "params": {"method": "inherent:unix_path"} } -S: {"id":3,"result":{}} -C: { "id":7, "obj": "session", "method":"echo", "params": {"msg": "Hello World"} } -S: {"id":7,"result":{"msg":"Hello World"}} +>>> {"id": 3, "obj": "connection", "method": "auth:authenticate", "params": {"scheme": "inherent:unix_path"}} +<<< {"id":3,"result":{"client":"dTewFIaZKQV1N7AUhpkpBIrIT-t5Ztb8"}} +>>> {"id": 4, "obj": "dTewFIaZKQV1N7AUhpkpBIrIT-t5Ztb8", "method": "arti:x-echo", "params": {"msg": "Hello World"}} +<<< {"id":4,"result":{"msg":"Hello World"}} ``` Note that the server will currently close your connection