mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 14:37:57 +00:00
rpc server with HTTP/WS on the same socket (#12663)
* jsonrpsee v0.16 add backwards compatibility run old http server on http only * cargo fmt * update jsonrpsee 0.16.1 * less verbose cors log * fix nit in log: WS -> HTTP * revert needless changes in Cargo.lock * remove unused features in tower * fix nits; add client-core feature * jsonrpsee v0.16.2
This commit is contained in:
@@ -12,7 +12,7 @@ description = "Shared JSON-RPC client"
|
||||
targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
jsonrpsee = { version = "0.15.1", features = ["ws-client"] }
|
||||
jsonrpsee = { version = "0.16.2", features = ["ws-client"] }
|
||||
sc-rpc-api = { version = "0.10.0-dev", path = "../../../../client/rpc-api" }
|
||||
async-trait = "0.1.57"
|
||||
serde = "1"
|
||||
|
||||
@@ -43,7 +43,10 @@ use sp_runtime::traits::{Block as BlockT, Header as HeaderT};
|
||||
use std::collections::VecDeque;
|
||||
|
||||
pub use jsonrpsee::{
|
||||
core::client::{ClientT, Subscription, SubscriptionClientT},
|
||||
core::{
|
||||
client::{ClientT, Subscription, SubscriptionClientT},
|
||||
params::BatchRequestBuilder,
|
||||
},
|
||||
rpc_params,
|
||||
ws_client::{WsClient, WsClientBuilder},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user