aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Daniel López Azaña <daniloaz@gmail.com>2024-04-04 20:19:38 +0200
committerLibravatar Daniel López Azaña <daniloaz@gmail.com>2024-04-04 20:19:38 +0200
commit0a1fa8873aa430f13735772cd0e8bff7c7ffc16c (patch)
treed23132dca5511abfbd754b003a4cb93418a0bba7
parent023758b3b5892faf0f82fff6013bcf21b1198756 (diff)
⬆️ (Cargo.toml): bump package version to 0.1.1 for new release
♻️ (ls_client.rs): streamline WebSocket 'wsok' message sending code
-rw-r--r--Cargo.toml2
-rw-r--r--src/ls_client.rs8
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 <daniloaz@gmail.com>"]
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
@@ -362,15 +362,9 @@ impl LightstreamerClient {
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.