From 0a1fa8873aa430f13735772cd0e8bff7c7ffc16c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B3pez=20Aza=C3=B1a?= Date: Thu, 4 Apr 2024 20:19:38 +0200 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20(Cargo.toml):=20bump=20pac?= =?UTF-8?q?kage=20version=20to=200.1.1=20for=20new=20release=20=E2=99=BB?= =?UTF-8?q?=EF=B8=8F=20(ls=5Fclient.rs):=20streamline=20WebSocket=20'wsok'?= =?UTF-8?q?=20message=20sending=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.toml | 2 +- src/ls_client.rs | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index efe4eca..49609cb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lightstreamer-client" -version = "0.1.0" +version = "0.1.1" edition = "2021" authors = ["Daniel López Azaña "] description = "A Rust client for Lightstreamer, designed to facilitate real-time communication with Lightstreamer servers." diff --git a/src/ls_client.rs b/src/ls_client.rs index 63cd04d..f3966cf 100644 --- a/src/ls_client.rs +++ b/src/ls_client.rs @@ -361,16 +361,10 @@ impl LightstreamerClient { // Split the WebSocket stream into a write and a read stream. let (mut write_stream, mut read_stream) = ws_stream.split(); - // - // Confirm the connection by sending a 'wsok' message to the server. - // - // // Initiate communication with the server by sending a 'wsok' message. // - write_stream - .send(Message::Text("wsok".into())) - .await?; + write_stream.send(Message::Text("wsok".into())).await?; // // Start reading and processing messages from the server.