public class ReactorNettyWebSocketSession extends NettyWebSocketSessionSupport<ReactorNettyWebSocketSession.WebSocketConnection>
WebSocketSession implementation that adapts to Reactor Netty's
WebSocket NettyInbound and NettyOutbound.| Modifier and Type | Class and Description |
|---|---|
static class |
ReactorNettyWebSocketSession.WebSocketConnection
Simple container for
NettyInbound and NettyOutbound. |
DEFAULT_FRAME_MAX_SIZE| Constructor and Description |
|---|
ReactorNettyWebSocketSession(reactor.ipc.netty.http.websocket.WebsocketInbound inbound,
reactor.ipc.netty.http.websocket.WebsocketOutbound outbound,
HandshakeInfo info,
org.springframework.core.io.buffer.NettyDataBufferFactory bufferFactory) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<java.lang.Void> |
close(CloseStatus status)
Close the WebSocket session with the given status.
|
reactor.core.publisher.Flux<WebSocketMessage> |
receive()
Get the flux of incoming messages.
|
reactor.core.publisher.Mono<java.lang.Void> |
send(org.reactivestreams.Publisher<WebSocketMessage> messages)
Write the given messages to the WebSocket connection.
|
bufferFactory, toFrame, toMessagebinaryMessage, getDelegate, getHandshakeInfo, getId, pingMessage, pongMessage, textMessage, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclosepublic ReactorNettyWebSocketSession(reactor.ipc.netty.http.websocket.WebsocketInbound inbound,
reactor.ipc.netty.http.websocket.WebsocketOutbound outbound,
HandshakeInfo info,
org.springframework.core.io.buffer.NettyDataBufferFactory bufferFactory)
public reactor.core.publisher.Flux<WebSocketMessage> receive()
WebSocketSessionreceive in interface WebSocketSessionreceive in class AbstractWebSocketSession<ReactorNettyWebSocketSession.WebSocketConnection>public reactor.core.publisher.Mono<java.lang.Void> send(org.reactivestreams.Publisher<WebSocketMessage> messages)
WebSocketSessionsend in interface WebSocketSessionsend in class AbstractWebSocketSession<ReactorNettyWebSocketSession.WebSocketConnection>messages - the messages to writepublic reactor.core.publisher.Mono<java.lang.Void> close(CloseStatus status)
WebSocketSessionstatus - the close status