How to handle multiple clients looking at the same dynamic data. #5922
Unanswered
natankeddem
asked this question in
Q&A
Replies: 1 comment 3 replies
-
|
Hello @natankeddem. I think #5737 may help. IMHO you're close but just missing |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Example Code
Description
I am trying to figure out the best way to emulate the old functionality of NiceGUI 2.x in which the ui state was shared between multiple clients/browsers. In the example I attached is a test interface which executes various tests in arbitrary/dynamic way and displays results after running. The result for each test may contain multiple NiceGUI elements in various arrangements, they can include tabbed interfaces or complex elements such as echarts. In my specific use case there is a main control client/browser and then multiple monitor clients that can view status/results but not control the testing.
The problem with the current implementation is that it only really works for test results that are static after the tests have completed running. In reality the test will want results shown with dynamic elements as the test runs, think xterm showing live status information from running terminal applications or an echart that is constantly changing as the test is executed. Right now my backend is only aware of a single element (the one which is shown in the control browser instance). I will need to make sure the backend not only instantiates the monitor elements but also updates all monitor elements as needed when the tests progress.
Is there an easier way to do this that I am not seeing?
NiceGUI Version
3.9.0
Python Version
Python 3.14.2
Browser
Chrome, Firefox
Operating System
macOS
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions