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
1 changed files with 1 additions and 1 deletions

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();