sendData

suspend fun sendData(data: ByteArray): Boolean

Sends the specified data. This function suspends when the window is full and waits for acknowledgements to be sent back. Returns true on success, false when the buffer is currently being destroyed.

Note that only one sendData call should be in flight at any point in time.