I'm proxying between a TCP connection and a WebSocket, and I want to apply back-pressure to the TCP socket if the WebSocket is sending data to the browser slowly. When I receive data from the TCP socket I do:
channel.push(data.toArray)
I'd like to get an acknowledgement of when that data has been sent. How do I get that?