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 --- src/ls_client.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src') 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