From 023758b3b5892faf0f82fff6013bcf21b1198756 Mon Sep 17 00:00:00 2001 From: Daniel López Azaña Date: Thu, 4 Apr 2024 15:39:55 +0200 Subject: ✨ (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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/connection_options.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/connection_options.rs') diff --git a/src/connection_options.rs b/src/connection_options.rs index e3218df..e9b3ab0 100644 --- a/src/connection_options.rs +++ b/src/connection_options.rs @@ -239,6 +239,13 @@ impl ConnectionOptions { self.reverse_heartbeat_interval } + /// Inquiry method that gets if LS_send_sync is to be sent to the server. + /// If set to false, instructs the Server not to send the SYNC notifications on this connection. + /// If omitted, the default is true. + pub fn get_send_sync(&self) -> bool { + self.send_sync + } + /// Inquiry method that gets the maximum time allowed for attempts to recover the current session /// upon an interruption, after which a new session will be created. A 0 value also means that /// any attempt to recover the current session is prevented in the first place. -- cgit v1.2.3