CoreWebSocket
CoreWebSocket copied to clipboard
Fix data corruption due to short write issue
This fixes a problem when the data to be sent exceeds the immediate buffer space available. The previous code would write whatever would fit into the buffer and drop the rest. This change ensures the full amount of data always gets sent.