rax-remote-2/vital-signs/src/main/java/com/rax/vital/handler/ChatHandler.java

35 lines
887 B
Java
Raw Normal View History

2024-04-12 09:58:28 +08:00
package com.rax.vital.handler;
2024-04-12 18:58:52 +08:00
import org.springframework.stereotype.Component;
2024-04-12 09:58:28 +08:00
import org.springframework.web.socket.CloseStatus;
import org.springframework.web.socket.WebSocketHandler;
import org.springframework.web.socket.WebSocketMessage;
import org.springframework.web.socket.WebSocketSession;
public class ChatHandler implements WebSocketHandler {
@Override
public void afterConnectionEstablished(WebSocketSession session) throws Exception {
}
@Override
public void handleMessage(WebSocketSession session, WebSocketMessage<?> message) throws Exception {
}
@Override
public void handleTransportError(WebSocketSession session, Throwable exception) throws Exception {
}
@Override
public void afterConnectionClosed(WebSocketSession session, CloseStatus closeStatus) throws Exception {
}
@Override
public boolean supportsPartialMessages() {
return false;
}
}