code: private static ConnectionHandler<ByteBuf, ByteBuf> echoHandler() {
          return conn -> conn.writeStringAndFlushOnEach(
                  conn.getInput().map(msg -> "echo => " + msg.toString(Charset.defaultCharset()) + "\n"));
      }
docs: New {@link ConnectionHandler} that echoes all data received.
  
  @return Connection handler.