From 19c0c6042a851a4e3d2f54e78f26be35b840fd50 Mon Sep 17 00:00:00 2001 From: Dominik Nakamura Date: Sun, 30 Jan 2022 00:04:30 +0900 Subject: [PATCH] Change to new default port --- README.md | 2 +- examples/events.rs | 2 +- examples/iter_scenes.rs | 2 +- examples/screenshot.rs | 2 +- examples/simple.rs | 2 +- src/lib.rs | 2 +- tests/integration/common.rs | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 11562bb..fa273af 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ use obws::Client; #[tokio::main] async fn main() -> Result<()> { /// Connect to the OBS instance through obs-websocket. - let client = Client::connect("localhost", 4444, Some("password")).await?; + let client = Client::connect("localhost", 4455, Some("password")).await?; /// Get and print out version information of OBS and obs-websocket. let version = client.general().get_version().await?; diff --git a/examples/events.rs b/examples/events.rs index a417917..bdcad46 100644 --- a/examples/events.rs +++ b/examples/events.rs @@ -11,7 +11,7 @@ async fn main() -> Result<()> { env::set_var("RUST_LOG", "obws=debug"); tracing_subscriber::fmt::init(); - let client = Client::connect("localhost", 4444, env::var("OBS_PASSWORD").ok()).await?; + let client = Client::connect("localhost",4455, env::var("OBS_PASSWORD").ok()).await?; let events = client.events()?; pin_mut!(events); diff --git a/examples/iter_scenes.rs b/examples/iter_scenes.rs index 273fd48..bcd94a8 100644 --- a/examples/iter_scenes.rs +++ b/examples/iter_scenes.rs @@ -10,7 +10,7 @@ async fn main() -> Result<()> { env::set_var("RUST_LOG", "obws=debug"); tracing_subscriber::fmt::init(); - let client = Client::connect("localhost", 4444, env::var("OBS_PASSWORD").ok()).await?; + let client = Client::connect("localhost", 4455, env::var("OBS_PASSWORD").ok()).await?; let scene_list = client.scenes().get_scene_list().await?; diff --git a/examples/screenshot.rs b/examples/screenshot.rs index f872e12..28c32fa 100644 --- a/examples/screenshot.rs +++ b/examples/screenshot.rs @@ -11,7 +11,7 @@ async fn main() -> Result<()> { env::set_var("RUST_LOG", "obws=debug"); tracing_subscriber::fmt::init(); - let client = Client::connect("localhost", 4444, env::var("OBS_PASSWORD").ok()).await?; + let client = Client::connect("localhost", 4455, env::var("OBS_PASSWORD").ok()).await?; let screenshot = client .sources() diff --git a/examples/simple.rs b/examples/simple.rs index 259986c..76121ee 100644 --- a/examples/simple.rs +++ b/examples/simple.rs @@ -10,7 +10,7 @@ async fn main() -> Result<()> { env::set_var("RUST_LOG", "obws=debug"); tracing_subscriber::fmt::init(); - let client = Client::connect("localhost", 4444, env::var("OBS_PASSWORD").ok()).await?; + let client = Client::connect("localhost", 4455, env::var("OBS_PASSWORD").ok()).await?; let version = client.general().get_version().await?; println!("{:#?}", version); diff --git a/src/lib.rs b/src/lib.rs index ef9df30..f072006 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -13,7 +13,7 @@ //! #[tokio::main] //! async fn main() -> Result<()> { //! /// Connect to the OBS instance through obs-websocket. -//! let client = Client::connect("localhost", 4444, Some("password")).await?; +//! let client = Client::connect("localhost", 4455, Some("password")).await?; //! //! /// Get and print out version information of OBS and obs-websocket. //! let version = client.general().get_version().await?; diff --git a/tests/integration/common.rs b/tests/integration/common.rs index a73e1b5..51feae5 100644 --- a/tests/integration/common.rs +++ b/tests/integration/common.rs @@ -31,7 +31,7 @@ pub async fn new_client() -> Result { let host = env::var("OBS_HOST").unwrap_or_else(|_| "localhost".to_owned()); let port = env::var("OBS_PORT") .map(|p| p.parse()) - .unwrap_or(Ok(4444))?; + .unwrap_or(Ok(4455))?; let client = Client::connect(host, port, env::var("OBS_PASSWORD").ok()).await?; ensure_obs_setup(&client).await?;