feat: 开始管理用户是否读取了消息
目前出现了BUG。我修改代码后。前端websocket收不到消息了。
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user