Use destroy buffer size on websocket transport method as well

Patch possible DOS attack vector