public Mono<Void> send(GatewayMessage response) {
    return Mono.defer(
        () ->
            outbound
                .sendObject(Mono.just(response).map(codec::encode).map(TextWebSocketFrame::new))
                .then()
                .doOnSuccessOrError((avoid, th) -> logSend(response, th)));
  }
public Mono < Void > send ( GatewayMessage response ) { return Mono . defer ( ( ) -> outbound . sendObject ( Mono . just ( response ) . map ( codec :: encode ) . map ( TextWebSocketFrame :: new ) ) . then ( ) . doOnSuccessOrError ( ( avoid , th ) -> logSend ( response , th ) ) ) ; }
Method to send normal response.

@param response response
@return mono void