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

Duplicate elements when opening additional connections. #2

Open
RudyFiero opened this issue Nov 26, 2017 · 3 comments
Open

Duplicate elements when opening additional connections. #2

RudyFiero opened this issue Nov 26, 2017 · 3 comments

Comments

@RudyFiero
Copy link

Using UI_test, when I open a second browser connection the Label/LED pair are duplicated on the same line on the first instance. When opening a third connection the second page has two, the first page has three. The duplicate buttons also control the LED but the state is not changed. (not that it should be there)

Any plans on adding to the library?

@ayushsharma82
Copy link
Owner

The Library uses Broadcast function of websockets therefore the new webpage request gets sent to all connected clients. I will try to resolve the issue in future.

@RudyFiero
Copy link
Author

I don't have the time to look at your code but I know that this does a broadcast to multiple connections and it doesn't have the same problems as your example.

https://gist.github.com/bbx10/667e3d4f5f2c0831d00b

@sanilsdevan
Copy link

any updates on the enhancement??

Like ...

if exists togglebutton Pin number (x), then skip new creation .... something like that

Sorry.. I'm not a programming guy.. just basic knowledge ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants