- Common ways to obtain TextWebSocketFrame
private void myMethod () {TextWebSocketFrame t =
ByteBuf binaryData;new TextWebSocketFrame(binaryData)
String text;new TextWebSocketFrame(text)
WebSocketFrame webSocketFrame;(TextWebSocketFrame) webSocketFrame.retainedDuplicate()
- Smart code suggestions by Codota
}
logger.debug("received test frame: {}", text); if (text != null && text.startsWith("ECHO ")) { //echo protocol ctx.channel().writeAndFlush(tf.copy());
logger.debug("received test frame: {}", text); if (text != null && text.startsWith("ECHO ")) { //echo protocol ctx.channel().writeAndFlush(tf.copy());