Class VertxWebSocketSession

  • All Implemented Interfaces:
    org.springframework.web.reactive.socket.WebSocketSession

    public class VertxWebSocketSession
    extends org.springframework.web.reactive.socket.adapter.AbstractWebSocketSession<io.vertx.core.http.WebSocketBase>
    • Constructor Summary

      Constructors 
      Constructor Description
      VertxWebSocketSession​(io.vertx.core.http.WebSocketBase delegate, org.springframework.web.reactive.socket.HandshakeInfo handshakeInfo, BufferConverter bufferConverter, int maxWebSocketFrameSize, int maxWebSocketMessageSize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      reactor.core.publisher.Mono<Void> close​(org.springframework.web.reactive.socket.CloseStatus status)  
      reactor.core.publisher.Mono<org.springframework.web.reactive.socket.CloseStatus> closeStatus()  
      boolean isOpen()  
      reactor.core.publisher.Flux<org.springframework.web.reactive.socket.WebSocketMessage> receive()  
      reactor.core.publisher.Mono<Void> send​(org.reactivestreams.Publisher<org.springframework.web.reactive.socket.WebSocketMessage> messages)  
      • Methods inherited from class org.springframework.web.reactive.socket.adapter.AbstractWebSocketSession

        binaryMessage, bufferFactory, getAttributes, getDelegate, getHandshakeInfo, getId, getLogPrefix, pingMessage, pongMessage, textMessage, toString
      • Methods inherited from interface org.springframework.web.reactive.socket.WebSocketSession

        close
    • Constructor Detail

      • VertxWebSocketSession

        public VertxWebSocketSession​(io.vertx.core.http.WebSocketBase delegate,
                                     org.springframework.web.reactive.socket.HandshakeInfo handshakeInfo,
                                     BufferConverter bufferConverter,
                                     int maxWebSocketFrameSize,
                                     int maxWebSocketMessageSize)
    • Method Detail

      • receive

        public reactor.core.publisher.Flux<org.springframework.web.reactive.socket.WebSocketMessage> receive()
        Specified by:
        receive in interface org.springframework.web.reactive.socket.WebSocketSession
        Specified by:
        receive in class org.springframework.web.reactive.socket.adapter.AbstractWebSocketSession<io.vertx.core.http.WebSocketBase>
      • send

        public reactor.core.publisher.Mono<Void> send​(org.reactivestreams.Publisher<org.springframework.web.reactive.socket.WebSocketMessage> messages)
        Specified by:
        send in interface org.springframework.web.reactive.socket.WebSocketSession
        Specified by:
        send in class org.springframework.web.reactive.socket.adapter.AbstractWebSocketSession<io.vertx.core.http.WebSocketBase>
      • isOpen

        public boolean isOpen()
      • close

        public reactor.core.publisher.Mono<Void> close​(org.springframework.web.reactive.socket.CloseStatus status)
      • closeStatus

        public reactor.core.publisher.Mono<org.springframework.web.reactive.socket.CloseStatus> closeStatus()