https://kotlinlang.org logo
#ktor
Title
# ktor
j

jozefdransfield

01/07/2022, 1:43 PM
Can anyone advise if there is a clean way to get a publisher<bytebuffer> from a ktor call object? I have kotlinx.coroutines.reactive and it can turn a flow into a publisher but I can't find anything for a channel?
a

archecraft

01/07/2022, 3:35 PM
There is a
Channel.consumeAsFlow()
extension function to convert s channel into a flow
j

jozefdransfield

01/07/2022, 10:04 PM
The type returned from call.receiveChannel is a ByteReadChannel which doesn't have that comsumeAsFlow?
3 Views