aboutsummaryrefslogtreecommitdiff
path: root/jsonrpc/README.md
diff options
context:
space:
mode:
authorhozan23 <hozan23@karyontech.net>2024-06-22 16:00:12 +0200
committerhozan23 <hozan23@karyontech.net>2024-06-22 16:00:12 +0200
commitb95bf6ce8ccc19d9702183574574d3721781a93a (patch)
tree9c4ea5e6fdf78045dc25136183dc726930e9259d /jsonrpc/README.md
parenteed5fdb54cc261756c828d9c6bd1114e16ec6aa8 (diff)
bump version to 0.1.4
Diffstat (limited to 'jsonrpc/README.md')
-rw-r--r--jsonrpc/README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/jsonrpc/README.md b/jsonrpc/README.md
index ca0a212..83107d4 100644
--- a/jsonrpc/README.md
+++ b/jsonrpc/README.md
@@ -31,8 +31,7 @@ use serde_json::Value;
use smol::stream::StreamExt;
use karyon_jsonrpc::{
- RPCError, Server, Client, rpc_impl, rpc_pubsub_impl, message::SubscriptionID,
- Channel
+ RPCError, Server, Client, rpc_impl, rpc_pubsub_impl, SubscriptionID, Channel
};
struct HelloWorld {}
@@ -126,6 +125,7 @@ async {
})
.detach();
+ // Unsubscribe after 5 seconds
smol::Timer::after(std::time::Duration::from_secs(5)).await;
client