aboutsummaryrefslogtreecommitdiff
path: root/examples/chat/client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/chat/client.rs')
-rw-r--r--examples/chat/client.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/chat/client.rs b/examples/chat/client.rs
index d9908ae..366a254 100644
--- a/examples/chat/client.rs
+++ b/examples/chat/client.rs
@@ -117,10 +117,12 @@ fn start_terminal_listener(mut commands: Commands) {
}
fn start_connection(mut client: ResMut<Client>) {
- client.open_connection(
- ConnectionConfiguration::new("127.0.0.1".to_string(), 6000, "0.0.0.0".to_string(), 0),
- CertificateVerificationMode::SkipVerification,
- );
+ client
+ .open_connection(
+ ConnectionConfiguration::new("127.0.0.1".to_string(), 6000, "0.0.0.0".to_string(), 0),
+ CertificateVerificationMode::SkipVerification,
+ )
+ .unwrap();
// You can already send message(s) even before being connected, they will be buffered. In this example we will wait for a ConnectionEvent.
}