I use a websocket to send a large number of images to a server.
I can see the amount of remaining data with bufferedAmount
Is there a way to empty the current buffer without closing the connection? (I want to send more messages)
(I have already tried to implement my own queue, with server replies for each message, but it slowed down the exchanges considerably)