fix: fixing unblocked stream in main

This commit is contained in:
Nickiel12 2022-12-24 20:09:01 -08:00
parent 7dd4702595
commit b9b733f271

View file

@ -87,7 +87,9 @@ fn main() {
}
};
socket.write_message(Message::Text(message_string)).unwrap();
socket
.write_message(Message::Text(message_string))
.expect("Error sending message");
let server_message = socket.read_message().expect("Error reading message");
let server_response: message_types::ServerResponse =