write

abstract suspend fun write(data: ByteArray)(source)

Write all bytes to the transport.

Parameters

data

Bytes to write

Throws

if the connection is closed or an error occurs