Batches send()
and publish()
operations, which makes it faster to send data.
The message
, open
, and drain
callbacks are automatically corked, so you only need to call this if you are sending messages outside of those callbacks or in async functions.