Add logic to set `FIN` flag automatically for transmitted WS frames, but if `fragmented` option set indicating an expert/manual mode, then the `FIN` flag is set according to the `final` option.
Add logic to set `FIN` flag automatically for transmitted WS frames, but if `fragmented` option set indicating an expert/manual mode, then the `FIN` flag is set according to the `final` option.