vttranlina commented on code in PR #2561: URL: https://github.com/apache/james-project/pull/2561#discussion_r1879654931
########## server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/routes/WebSocketRoutes.scala: ########## @@ -115,11 +118,8 @@ class WebSocketRoutes @Inject() (@Named(InjectionKeys.RFC_8621) val authenticato val context = ClientContext(sink, new AtomicReference[Registration](), session) val responseFlux: SFlux[OutboundMessage] = SFlux[WebSocketFrame](in.aggregateFrames() .receiveFrames()) - .map(frame => { - val bytes = new Array[Byte](frame.content().readableBytes) - frame.content().readBytes(bytes) - new String(bytes, StandardCharsets.UTF_8) - }) + .filter(frame => frame.isInstanceOf[TextWebSocketFrame]) Review Comment: I'm stuck with reactor code here -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org For additional commands, e-mail: notifications-h...@james.apache.org