Skip to content

Commit

Permalink
fix(ws client): export WsClient (#646)
Browse files Browse the repository at this point in the history
* fix(ws client): export `WsClient`

* fix build

* fix doc links
  • Loading branch information
niklasad1 committed Jan 10, 2022
1 parent 3749ae2 commit f509346
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions client/ws-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,16 @@
#[cfg(test)]
mod tests;

pub use jsonrpsee_core::client::Client as WsClient;
pub use jsonrpsee_types as types;

use std::time::Duration;

use jsonrpsee_client_transport::ws::{Header, InvalidUri, Uri, WsTransportClientBuilder};
use jsonrpsee_core::client::{CertificateStore, Client, ClientBuilder};
use jsonrpsee_core::client::{CertificateStore, ClientBuilder};
use jsonrpsee_core::{Error, TEN_MB_SIZE_BYTES};

/// Builder for [`Client`].
/// Builder for [`WsClient`].
///
/// # Examples
///
Expand Down Expand Up @@ -148,7 +149,7 @@ impl<'a> WsClientBuilder<'a> {
/// ## Panics
///
/// Panics if being called outside of `tokio` runtime context.
pub async fn build(self, url: impl AsRef<str>) -> Result<Client, Error> {
pub async fn build(self, url: impl AsRef<str>) -> Result<WsClient, Error> {
let transport_builder = WsTransportClientBuilder {
certificate_store: self.certificate_store,
connection_timeout: self.connection_timeout,
Expand Down

0 comments on commit f509346

Please sign in to comment.