Skip to content

Commit

Permalink
Add periodic ping broadcast for all subscribers
Browse files Browse the repository at this point in the history
This will ensure the server can detect if a client has hung up
without cleanly disconnecting
  • Loading branch information
ff14wed committed Mar 14, 2023
1 parent 6791544 commit 2a6c93f
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 77 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ async fn main_with_result() -> Result<()> {
// Block on server loop
let hs_clone = hs.clone();
if let Err(e) = deucalion_server
.run(pipe_name, move |payload: rpc::Payload| {
.run(pipe_name, true, move |payload: rpc::Payload| {
handle_payload(payload, hs_clone.clone())
})
.await
Expand Down
Loading

0 comments on commit 2a6c93f

Please sign in to comment.