接口的使用
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中的类 修饰符和类型 类 说明 classAbstractListenerWebSocketSession<T>Base class forWebSocketSessionimplementations that bridge between event-listener WebSocket APIs (e.g.classAbstractWebSocketSession<T>Convenient base class forWebSocketSessionimplementations that holds common fields and exposes accessors.classJettyWebSocketSessionSpringWebSocketSessionimplementation that adapts to a Jetty WebSocketSession.classNettyWebSocketSessionSupport<T>Base class for Netty-basedWebSocketSessionadapters that provides convenience methods to convert NettyWebSocketFramesto and fromWebSocketMessages.classReactorNettyWebSocketSessionclassStandardWebSocketSessionSpringWebSocketSessionadapter for a standard Java (JSR 356)Session.classTomcatWebSocketSessionSpringWebSocketSessionadapter for Tomcat'sSession.classUndertowWebSocketSessionSpringWebSocketSessionimplementation that adapts to an UndertowWebSocketChannel.