services-gateway-netty/src/main/java/io/scalecube/services/gateway/ws/WebsocketSession.java
/**
   * Method to send normal response.
   *
   * @param response response
   * @return mono void
   */
Method to send normal response.
@param response response
@return mono void
Method to send normal response . @param response response @return mono void
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.
Method to send normal response .