diff options
Diffstat (limited to 'jsonrpc/examples')
-rw-r--r-- | jsonrpc/examples/tokio_server/Cargo.toml | 2 | ||||
-rw-r--r-- | jsonrpc/examples/tokio_server/src/main.rs | 2 |
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() |