diff --git a/crates/relay-client/src/lib.rs b/crates/relay-client/src/lib.rs index ba6e23a..267f086 100644 --- a/crates/relay-client/src/lib.rs +++ b/crates/relay-client/src/lib.rs @@ -242,6 +242,8 @@ impl Connection { /// This function will connect to the relay server if it's not already /// connected, and will send and receive messages from the relay server /// if it's connected. + /// + /// This function will not block the current thread. pub fn update(&mut self) { self.state = match std::mem::replace(&mut self.state, ConnectionState::Disconnected) { ConnectionState::Disconnected => self.create_stream(),