1
0
mirror of https://github.com/s00500/ESPUI.git synced 2024-11-21 17:40:54 +00:00

Fix bug with multiple clients

If two clients were connected at the same time, the chunked updates
from one could cause the other to recieve UI_EXTEND messages. This
is fixed by passing the client in to jsonDom.
This commit is contained in:
Ian Gray 2022-01-20 20:43:04 +00:00
parent 55b291eb50
commit bc34078f42

View File

@ -445,7 +445,7 @@ void onWsEvent(
if (msg.startsWith(F("uiok:")))
{
int idx = msg.substring(msg.indexOf(':') + 1).toInt();
ESPUI.jsonDom(idx);
ESPUI.jsonDom(idx, client);
} else
{
uint16_t id = msg.substring(msg.lastIndexOf(':') + 1).toInt();