From fde7f18d57738dd309f0d2b1a4dd7de740979ece Mon Sep 17 00:00:00 2001 From: kozabrada123 <59031733+kozabrada123@users.noreply.github.com> Date: Wed, 31 Jan 2024 22:53:13 +0100 Subject: [PATCH] Fix example in readme for #456 (#475) --- README.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/README.md b/README.md index 6f37762..74bc673 100644 --- a/README.md +++ b/README.md @@ -53,16 +53,10 @@ To connect to a Spacebar compatible server, you need to create an [`Instance`](h ```rs use chorus::instance::Instance; -use chorus::UrlBundle; #[tokio::main] async fn main() { - let bundle = UrlBundle::new( - "https://example.com/api".to_string(), - "wss://example.com/".to_string(), - "https://example.com/cdn".to_string(), - ); - let instance = Instance::new(bundle) + let instance = Instance::new("https://example.com") .await .expect("Failed to connect to the Spacebar server"); // You can create as many instances of `Instance` as you want, but each `Instance` should likely be unique.