Package dev.snowdrop.vertx.http.common
Class VertxWebSocketSession
- java.lang.Object
-
- org.springframework.web.reactive.socket.adapter.AbstractWebSocketSession<io.vertx.core.http.WebSocketBase>
-
- dev.snowdrop.vertx.http.common.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()booleanisOpen()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
-
-
-
-
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:
receivein interfaceorg.springframework.web.reactive.socket.WebSocketSession- Specified by:
receivein classorg.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:
sendin interfaceorg.springframework.web.reactive.socket.WebSocketSession- Specified by:
sendin classorg.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()
-
-