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

Add fetchValue method #12

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

Add fetchValue method #12

wants to merge 4 commits into from

Conversation

nuustik
Copy link
Contributor

@nuustik nuustik commented Sep 15, 2023

No description provided.

@nuustik nuustik requested review from martlaak, Karmo7 and nuubik and removed request for martlaak September 15, 2023 10:24
README.rst Outdated

.. code:: javascript

client.fetchValue().then(function (value) {
Copy link

@Karmo7 Karmo7 Sep 15, 2023

Choose a reason for hiding this comment

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

In C++ client, this is called RequestValue(), in Java client requestValue(). We should use same terms in all our StudioAPI clients.

Issue is that only the very first subscriber gets value response the server and passes it to the subscriber.
If a new subscriber subscribes to the same node afterwards, then it gets no initial values.
This is because server only sends initial values on the first subscribe.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants