ktor-network / io.ktor.network.sockets / AReadable / attachForReading

attachForReading

abstract fun attachForReading(channel: ByteChannel): WriterJob

Attach channel for reading so incoming bytes appears in the attached channel. Only one channel could be attached

Return
a job that does supply data