sending gotted message to frontend

This commit is contained in:
horhik 2021-04-28 18:44:49 +03:00
parent 2ee973e63b
commit a862520d4e

View file

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