fix: fixing unblocked stream in main
This commit is contained in:
parent
7dd4702595
commit
b9b733f271
1 changed files with 3 additions and 1 deletions
|
@ -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_message = socket.read_message().expect("Error reading message");
|
||||||
|
|
||||||
let server_response: message_types::ServerResponse =
|
let server_response: message_types::ServerResponse =
|
||||||
|
|
Loading…
Reference in a new issue