sending gotted message to frontend

This commit is contained in:
horhik 2021-04-28 18:44:49 +03:00
parent 2ee973e63b
commit a862520d4e
1 changed files with 7 additions and 1 deletions

View File

@ -119,13 +119,19 @@ async fn server_responce_getter(mut receiver: OwnedReadHalf, client_sender: SP)
}
}
log::debug!("Parse new message!!!! {:?}", &message);
client_sender
.send(PackedMessage::ToClient(
message.to_string(),
))
.unwrap();
let mut lines = &received.clone().lines();
}
"AllData" => {
log::debug!("Receive a new message!!! {:?}", &received);
let message =
fcpv2::node::fcp_response::AllData::parse(&received[..]).unwrap();
log::debug!("Parse new message!!!! {:?}", &message);
let mut lines = &received.clone().lines();
//while (&lines.next() != &Some("AllData")){
// &lines.next();