Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/session info #60

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Charles-Schleich
Copy link
Member

Adds Session info interface to Zenoh-ts
Exposes zid, routers_zid, peers_zid
Adds example of usage of z_info.

Copy link

github-actions bot commented Dec 5, 2024

PR missing one of the required labels: {'documentation', 'enhancement', 'breaking-change', 'dependencies', 'bug', 'new feature', 'internal'}

@Charles-Schleich Charles-Schleich added the enhancement New feature or request label Dec 9, 2024
this.session_info = null;
this.send_ctrl_message(ctrl_message);

while (this.session_info === null) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this code means that if session info is not arrive immediately, it will wait for 10 seconds until next try?
I believe there is a way to notify asynchronous function exactly at the moment when session_info is updated - by creating and awaiting for promise which callback is called at the moment when session_info is set.
Something like this - is it possible?
https://stackoverflow.com/questions/53900575/how-to-create-an-async-function-that-waits-on-an-event-in-javascript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants