WebSocket connections do not (or not immediately) free memory after the client disconnected.
Connect with browser
Click reload a few times and watch the heap drop.
At least some (all?) memory is recovered after some time
See also for a different library: Links2004/arduinoWebSockets#75 (comment)