use text format in ws communication

This commit is contained in:
a10zn8
2024-02-13 22:39:42 +03:00
parent db94d36097
commit aa4f569ce2

View File

@@ -286,13 +286,13 @@ open class WsConnectionImpl(
val calls = rpcSend val calls = rpcSend
.asFlux() .asFlux()
.map { .map {
Unpooled.wrappedBuffer(it.toJson()) it.toString()
} }
return outbound.send( return outbound.sendString(
Flux.merge( Flux.merge(
calls.subscribeOn(scheduler), calls.subscribeOn(scheduler),
consumer.then(Mono.empty<ByteBuf>()).subscribeOn(scheduler), consumer.then(Mono.empty<String>()).subscribeOn(scheduler),
), ),
) )
} }