Skip to content

Commit

Permalink
remove example code from src
Browse files Browse the repository at this point in the history
  • Loading branch information
kziemianek committed Feb 4, 2025
1 parent 3bb5b88 commit c15b134
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
2 changes: 1 addition & 1 deletion src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use crate::command::CommandRequest;

use serde::{Deserialize, Serialize};

/// Client for interacting with TV
// WebOS TV websocket client allowing to communicate in request-response manner.
pub struct WebosClient<T> {
write: Box<Mutex<T>>,
next_command_id: Arc<Mutex<u64>>,
Expand Down
21 changes: 0 additions & 21 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,23 +1,2 @@
//! WebOS TV websocket client allowing to communicate in request-response manner.
//!
//! # Example
//!
//! Create client and send command
//! ```rust
//! use lg_webos_client::client::*;
//! use lg_webos_client::command::Command;
//!
//! #[tokio::main]
//! async fn main() {
//! env_logger::init();
//! // Note: We must specify the ws protocol, and if we do not have the key, we must use a blank str.
//! let config = WebOsClientConfig::new("ws://192.168.1.62:3000/", None);
//!
//! let client = WebosClient::new(config).await.unwrap();
//! let resp = client.send_command(Command::GetChannelList).await.unwrap();
//! println!("Got response {:?}", resp.payload);
//! }
//! ```
pub mod client;
pub mod command;

0 comments on commit c15b134

Please sign in to comment.