Skip to content

Commit

Permalink
add is_closed, on session
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles-Schleich committed Dec 23, 2024
1 parent 42f2b6c commit 3ebcd89
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zenoh-ts/src/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ export class Session {
Session.registry.unregister(this);
}

async is_closed(){
return this.remote_session.ws.readyState == WebSocket.CLOSED;
}
/**
* Puts a value on the session, on a specific key expression KeyExpr
*
Expand Down

0 comments on commit 3ebcd89

Please sign in to comment.