public abstract class BaseHandler
extends org.springframework.web.socket.handler.TextWebSocketHandler
Constructor and Description |
---|
BaseHandler() |
Modifier and Type | Method and Description |
---|---|
void |
afterConnectionClosed(org.springframework.web.socket.WebSocketSession session,
org.springframework.web.socket.CloseStatus status) |
abstract void |
destroy(org.springframework.web.socket.WebSocketSession session)
关闭连接
|
void |
handleTransportError(org.springframework.web.socket.WebSocketSession session,
Throwable exception) |
handleBinaryMessage
public void handleTransportError(org.springframework.web.socket.WebSocketSession session, Throwable exception)
handleTransportError
in interface org.springframework.web.socket.WebSocketHandler
handleTransportError
in class org.springframework.web.socket.handler.AbstractWebSocketHandler
public void afterConnectionClosed(org.springframework.web.socket.WebSocketSession session, org.springframework.web.socket.CloseStatus status)
afterConnectionClosed
in interface org.springframework.web.socket.WebSocketHandler
afterConnectionClosed
in class org.springframework.web.socket.handler.AbstractWebSocketHandler
public abstract void destroy(org.springframework.web.socket.WebSocketSession session)
session
- sessionCopyright © 2017–2019. All rights reserved.