If a client reloads the page by using F5 a new connection will be created, but the old one will not trigger a disconnect. This leads into high memory usage and could cause a crash depending on the UI size and amount of reloads.
To trigger a disconnect of old clients the AsyncWebSocket.cleanupClients() will now be called on every connect.
If a client reloads the page by using
F5
a new connection will be created, but the old one will not trigger a disconnect. This leads into high memory usage and could cause a crash depending on the UI size and amount of reloads. To trigger a disconnect of old clients theAsyncWebSocket.cleanupClients()
will now be called on every connect.Debug output before change:
Debug output after change: