• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

websocket with multiple clients

Q&A Forum › Category: ESP8266 › websocket with multiple clients
0 Vote Up Vote Down
Wally Harwood asked 1 year ago

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?

7 Answers
0 Vote Up Vote Down
Best Answer
Sara Santos Staff answered 1 year ago

Did that work for you?
Regards,
Sara

1 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Hi.
I’m sorry for taking so long to get back to you…
 
See page 300. Have you tried using onchange instead of oninput?
 
Regards,
Sara

0 Vote Up Vote Down
Wally Harwood answered 1 year ago

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.

0 Vote Up Vote Down
Wally Harwood answered 1 year ago

It looks like Enrico’s response to Web Server with Slider doesn’t update the connected clients may hold the solution .

0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Hi.
Yes. That’s probably it.
I’ll try it our and make any adjustments soon.
Regards,
Sara

0 Vote Up Vote Down
Wally Harwood answered 1 year ago

You asked if it worked for me, and it did. Thanks for your Help Kudos to you and Enrico.

0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Great.
Thanks for your feedback.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara
 

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.