Skip to content

Commit

Permalink
invoking future for ws push
Browse files Browse the repository at this point in the history
  • Loading branch information
commercium-sys committed Dec 22, 2023
1 parent 326e68d commit 2c01800
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/http/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,7 @@ async fn maintain_websocket(
read = read_stream.next() => {
match read {
Some(Ok(msg)) => {

let _ = send_to_loop.send(KernelMessage {
id: rand::random(),
source: Address {
Expand All @@ -675,7 +676,8 @@ async fn maintain_websocket(
bytes: msg.into_bytes(),
}),
signed_capabilities: None,
});
}).await;

}
_ => {
websocket_close(channel_id, app.clone(), &ws_senders, &send_to_loop).await;
Expand Down

0 comments on commit 2c01800

Please sign in to comment.