I believe that I have seen several applications where there are more than one client and all of them update immediately there is a change. I loaded the webSockets slider program 2.4 and found that the clients did not update until they were clicked on. What is the reason for this?
I’m sorry for taking so long to get back to you…
See page 300. Have you tried using onchange instead of oninput?
Thank you for your answer, unfortunately I was not clear in posing the question. The problem that I observed was that if a change was made by client 1 the change was not reflected on client 2’s screen until client 2 clicked on the screen.
eg start condition: client 1 and two both show slider at 0%; LED is out
Client 1 adjusts slider to 100%;LED comes full on; and client 1 sees Brightness is reported as 100% but client 2 continues to see slider at 0%, and brightness reported as 0% until client 2 clicks on their screen at which time slider moves to 100% and brightness is reported as 100.
I would have expected that client 2 would have seen the changes in slider and brightness at the same time as client 1 without having to do anything.
This is just a curiosity question. I was just trying to get insight into the possible problems of using websockets.
It looks like Enrico’s response to Web Server with Slider doesn’t update the connected clients may hold the solution .
Yes. That’s probably it.
I’ll try it our and make any adjustments soon.
You asked if it worked for me, and it did. Thanks for your Help Kudos to you and Enrico.