aboutsummaryrefslogtreecommitdiff
path: root/jsonrpc/examples/tokio_server
diff options
context:
space:
mode:
authorhozan23 <hozan23@karyontech.net>2024-05-28 15:14:34 +0200
committerhozan23 <hozan23@karyontech.net>2024-05-28 15:14:34 +0200
commit34f528a3b4063b4a25915e60d7f22ee1fb2d1bd9 (patch)
tree0327af027e72f7baf5f484c79b189aae631773d0 /jsonrpc/examples/tokio_server
parent9341e695d0e387927804716b60945912cba686dd (diff)
jsonrpc: add comments & remove debugging code
Diffstat (limited to 'jsonrpc/examples/tokio_server')
-rw-r--r--jsonrpc/examples/tokio_server/Cargo.toml2
-rw-r--r--jsonrpc/examples/tokio_server/src/main.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/jsonrpc/examples/tokio_server/Cargo.toml b/jsonrpc/examples/tokio_server/Cargo.toml
index 80f424d..93d8a61 100644
--- a/jsonrpc/examples/tokio_server/Cargo.toml
+++ b/jsonrpc/examples/tokio_server/Cargo.toml
@@ -7,7 +7,7 @@ edition = "2021"
[dependencies]
env_logger = "0.11.3"
-karyon_jsonrpc = { path = "../../", default-features = false, features = ["tokio"] }
+karyon_jsonrpc = { path = "../../", default-features = false, features = ["tokio", "ws"] }
serde = { version = "1.0.202", features = ["derive"] }
serde_json = "1.0.117"
tokio = { version = "1.37.0", features = ["full"] }
diff --git a/jsonrpc/examples/tokio_server/src/main.rs b/jsonrpc/examples/tokio_server/src/main.rs
index d70a46a..41d4c74 100644
--- a/jsonrpc/examples/tokio_server/src/main.rs
+++ b/jsonrpc/examples/tokio_server/src/main.rs
@@ -48,7 +48,7 @@ async fn main() {
};
// Creates a new server
- let server = Server::builder("tcp://127.0.0.1:6000")
+ let server = Server::builder("ws://127.0.0.1:6000")
.expect("Create a new server builder")
.service(Arc::new(calc))
.build()