Skip to content

Commit

Permalink
Add reconnect_on_disconnect option to ClientBuilder (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zel9278 authored Jan 26, 2024
1 parent b9fc040 commit 4ec692c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ fn start() {

ClientBuilder::new(pcsc_uri)
.namespace("/server")
.reconnect_on_disconnect(true)
.on(Event::Connect, |_, _| println!("Connected"))
.on(Event::Close, |_, _| println!("Disconnected"))
.on("hi", |payload, socket| {
Expand Down

0 comments on commit 4ec692c

Please sign in to comment.