mirror of
https://gitee.com/republicline/rax-remote-v2.git
synced 2025-08-24 04:04:57 +08:00
commit: 添加罗库版本
This commit is contained in:
parent
d6c9089e00
commit
9578e2ee1f
|
@ -50,6 +50,7 @@
|
|||
<groupId>com.rax</groupId>
|
||||
<artifactId>common-log</artifactId>
|
||||
</dependency>
|
||||
<!--日常计划模块-->
|
||||
<dependency>
|
||||
<groupId>com.rax</groupId>
|
||||
<artifactId>daily-plan</artifactId>
|
||||
|
|
|
@ -1,19 +1,16 @@
|
|||
package com.rax.vital.v1.config;
|
||||
|
||||
import com.rax.vital.v1.handler.AddMedicineHandler;
|
||||
|
||||
import com.rax.vital.v1.handler.ChatHandler;
|
||||
import com.rax.vital.v1.handler.MachineFeedbackHandler;
|
||||
import com.rax.vital.v1.handler.MedicineHandler;
|
||||
import com.rax.vital.v1.interceptor.WebSocketInterceptors;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.web.socket.WebSocketHandler;
|
||||
import org.springframework.web.socket.config.annotation.EnableWebSocket;
|
||||
import org.springframework.web.socket.config.annotation.StompEndpointRegistry;
|
||||
import org.springframework.web.socket.config.annotation.WebSocketConfigurer;
|
||||
import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry;
|
||||
import org.springframework.web.socket.server.HandshakeInterceptor;
|
||||
import org.springframework.web.socket.server.support.HttpSessionHandshakeInterceptor;
|
||||
|
||||
@EnableWebSocket
|
||||
@Configuration
|
||||
|
|
|
@ -263,7 +263,7 @@ public class ChatHandler implements WebSocketHandler {
|
|||
// JSONObject param = new JSONObject();
|
||||
// param.put("history", history);
|
||||
// param.put("msgType", "msg");
|
||||
//// session.sendMessage(new TextMessage(param.toJSONString().getBytes()));
|
||||
// session.sendMessage(new TextMessage(param.toJSONString().getBytes()));
|
||||
// for (WebSocketSession webSocketSession : webSocketSessionList) {
|
||||
// webSocketSession.sendMessage(new TextMessage(param.toJSONString().getBytes()));
|
||||
// }
|
||||
|
|
Loading…
Reference in New Issue
Block a user