接口的使用
org.springframework.web.reactive.socket.server.WebSocketService
使用WebSocketService的程序包 程序包 说明 org.springframework.web.reactive.socket.server.support Server-side support classes for WebSocket requests.org.springframework.web.reactive.socket.server.support中WebSocketService的使用
实现WebSocketService的org.springframework.web.reactive.socket.server.support中的类 修饰符和类型 类 说明 class
HandshakeWebSocketService
WebSocketService
implementation that handles a WebSocket HTTP handshake request by delegating to aRequestUpgradeStrategy
which is either auto-detected (no-arg constructor) from the classpath but can also be explicitly configured.返回WebSocketService的org.springframework.web.reactive.socket.server.support中的方法 修饰符和类型 方法 说明 WebSocketService
WebSocketHandlerAdapter. getWebSocketService()
Return the configuredWebSocketService
to handle requests.参数类型为WebSocketService的org.springframework.web.reactive.socket.server.support中的构造器 构造器 说明 WebSocketHandlerAdapter(WebSocketService webSocketService)
Alternative constructor with theWebSocketService
to use.