|
@ -205,9 +205,7 @@ void _wsParse(AsyncWebSocketClient *client, uint8_t * payload, size_t length) { |
|
|
if (save) { |
|
|
if (save) { |
|
|
|
|
|
|
|
|
// Callbacks
|
|
|
// Callbacks
|
|
|
for (unsigned char i = 0; i < _ws_on_after_parse_callbacks.size(); i++) { |
|
|
|
|
|
(_ws_on_after_parse_callbacks[i])(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
wsReload(); |
|
|
|
|
|
|
|
|
// This should got to callback as well
|
|
|
// This should got to callback as well
|
|
|
// but first change management has to be in place
|
|
|
// but first change management has to be in place
|
|
@ -434,6 +432,15 @@ void wsConfigure() { |
|
|
#endif
|
|
|
#endif
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// This method being public makes
|
|
|
|
|
|
// _ws_on_after_parse_callbacks strange here,
|
|
|
|
|
|
// it should belong somewhere else.
|
|
|
|
|
|
void wsReload() { |
|
|
|
|
|
for (unsigned char i = 0; i < _ws_on_after_parse_callbacks.size(); i++) { |
|
|
|
|
|
(_ws_on_after_parse_callbacks[i])(); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
void wsSetup() { |
|
|
void wsSetup() { |
|
|
_ws.onEvent(_wsEvent); |
|
|
_ws.onEvent(_wsEvent); |
|
|
wsConfigure(); |
|
|
wsConfigure(); |
|
|