public class MapSessionWebSocketHandlerDecorator
extends org.springframework.web.socket.handler.WebSocketHandlerDecorator
| 构造器和说明 |
|---|
MapSessionWebSocketHandlerDecorator(org.springframework.web.socket.WebSocketHandler delegate,
WebSocketSessionStore webSocketSessionStore,
ConcurrentWebSocketSessionOptions concurrentWebSocketSessionOptions) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterConnectionClosed(org.springframework.web.socket.WebSocketSession wsSession,
org.springframework.web.socket.CloseStatus closeStatus)
websocket 关闭连接时执行的动作
|
void |
afterConnectionEstablished(org.springframework.web.socket.WebSocketSession wsSession)
websocket 连接时执行的动作
|
public MapSessionWebSocketHandlerDecorator(org.springframework.web.socket.WebSocketHandler delegate,
WebSocketSessionStore webSocketSessionStore,
ConcurrentWebSocketSessionOptions concurrentWebSocketSessionOptions)
public void afterConnectionEstablished(org.springframework.web.socket.WebSocketSession wsSession)
throws Exception
afterConnectionEstablished 在接口中 org.springframework.web.socket.WebSocketHandlerafterConnectionEstablished 在类中 org.springframework.web.socket.handler.WebSocketHandlerDecoratorwsSession - websocket session 对象Exception - 异常对象public void afterConnectionClosed(org.springframework.web.socket.WebSocketSession wsSession,
org.springframework.web.socket.CloseStatus closeStatus)
throws Exception
afterConnectionClosed 在接口中 org.springframework.web.socket.WebSocketHandlerafterConnectionClosed 在类中 org.springframework.web.socket.handler.WebSocketHandlerDecoratorwsSession - websocket session 对象closeStatus - 关闭状态对象Exception - 异常对象Copyright © 2023. All rights reserved.