接口的使用
org.springframework.web.reactive.socket.WebSocketSession
使用WebSocketSession的程序包 程序包 说明 org.springframework.web.reactive.socket Abstractions and support classes for reactive WebSocket interactions.org.springframework.web.reactive.socket.adapter Classes adapting Spring's Reactive WebSocket API to and from WebSocket runtimes.org.springframework.web.reactive.socket中WebSocketSession的使用
参数类型为WebSocketSession的org.springframework.web.reactive.socket中的方法 修饰符和类型 方法 说明 reactor.core.publisher.Mono<Void>
WebSocketHandler. handle(WebSocketSession session)
Invoked when a new WebSocket connection is established, and allows handling of the session.org.springframework.web.reactive.socket.adapter中WebSocketSession的使用
实现WebSocketSession的org.springframework.web.reactive.socket.adapter中的类 修饰符和类型 类 说明 class
AbstractListenerWebSocketSession<T>
Base class forWebSocketSession
implementations that bridge between event-listener WebSocket APIs (e.g.class
AbstractWebSocketSession<T>
Convenient base class forWebSocketSession
implementations that holds common fields and exposes accessors.class
JettyWebSocketSession
SpringWebSocketSession
implementation that adapts to a Jetty WebSocketSession
.class
NettyWebSocketSessionSupport<T>
Base class for Netty-basedWebSocketSession
adapters that provides convenience methods to convert NettyWebSocketFrames
to and fromWebSocketMessages
.class
ReactorNettyWebSocketSession
class
StandardWebSocketSession
SpringWebSocketSession
adapter for a standard Java (JSR 356)Session
.class
TomcatWebSocketSession
SpringWebSocketSession
adapter for Tomcat'sSession
.class
UndertowWebSocketSession
SpringWebSocketSession
implementation that adapts to an UndertowWebSocketChannel
.