From 0a1fa8873aa430f13735772cd0e8bff7c7ffc16c Mon Sep 17 00:00:00 2001 From: Daniel López Azaña Date: Thu, 4 Apr 2024 20:19:38 +0200 Subject: ⬆️ (Cargo.toml): bump package version to 0.1.1 for new release ♻️ (ls_client.rs): streamline WebSocket 'wsok' message sending code 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. -- cgit v1.2.3