5 Commits

Author SHA1 Message Date
Daniel López Azaña
023758b3b5 (connection_options.rs): Add get_send_sync method for ConnectionOptions
♻️ (ls_client.rs): Refactor message processing to handle multiple submessages
🐛 (ls_client.rs): Fix default instantiation of ConnectionOptions using default method
2024-04-04 15:39:55 +02:00
Daniel López Azaña
7af7a7626a WARNING: unstable commit.
🔧 Update .gitignore to exclude .vscode directory
 Add futures-util and url dependencies to Cargo.toml
♻️ Refactor error handling into separate error module in Rust project
💡 Add get_password method documentation in connection_details.rs
♻️ Replace String with Transport enum for forced_transport in connection_options.rs
 Implement WebSocket connection logic in ls_client.rs with async support
 Add ClientStatus, ConnectionType, and DisconnectionType enums to manage client states in ls_client.rs

 (main.rs): add Transport enum to LightstreamerClient imports for WebSocket support
♻️ (main.rs): refactor signal handling to use SharedState struct for clean shutdown
 (main.rs): implement AtomicBool for graceful disconnect handling
📝 (main.rs): update comments to reflect new signal handling logic
 (main.rs): set forced transport to WebSocket streaming in Lightstreamer client options
 (util.rs): create new util module with clean_message function for message sanitization
2024-03-30 20:59:58 +01:00
Daniel López Azaña
88c8a8d7c4 Improved connection_options module. 2024-03-29 20:41:33 +01:00
Daniel López Azaña
e1c0e90581 (client_listener.rs): Implement Debug trait for ClientListener for better logging
♻️ (connection_details.rs): Refactor ConnectionDetails to use Option for optional fields
♻️ (connection_details.rs): Change new constructor to accept &str and convert to String
 (connection_details.rs): Implement Debug trait for ConnectionDetails
♻️ (connection_options.rs): Implement Debug trait for ConnectionOptions
♻️ (lightstreamer_client.rs): Refactor LightstreamerClient to use Option for server_address and adapter_set
 (lightstreamer_client.rs): Implement Debug trait for LightstreamerClient
♻️ (main.rs): Update subscribe_to_channel function to use new control.txt URL and parameters
♻️ (main.rs): Update main function to use Option<&str> when creating LightstreamerClient
 (proxy.rs): Add Proxy struct and ProxyType enum to handle proxy configurations
2024-03-28 19:19:46 +01:00
daniloaz
7e1eb27a06 Created structure and scaffolding for the Lightstreamer client. 2024-03-24 20:39:43 +01:00