feat: 开始管理用户是否读取了消息

目前出现了BUG。我修改代码后。前端websocket收不到消息了。
This commit is contained in:
Kylin
2024-08-29 17:39:10 +08:00
parent a1143a48a6
commit 936fc24b2e
4 changed files with 93 additions and 21 deletions

View File

@@ -1,14 +1,17 @@
package com.youlai.system.service;
import java.util.Set;
public interface WebsocketService {
void addUser(String username);
void removeUser(String username) ;
Set<String> getUsers();
/**
* 发送消息到前端
* @param message
*/
void sendStringToFrontend(String message);
void sendStringToFrontend(String sender,String message);
}