This commit is contained in:
zhutao
2025-12-01 16:00:16 +08:00
parent c67bc730af
commit f5ce40063f
14 changed files with 66 additions and 31 deletions

View File

@@ -103,6 +103,7 @@ class StuRoomVM extends ChangeNotifier {
//启动连接
await _ws.connect();
//
_sub?.cancel();
_sub = _ws.stream.listen((msg) {
//自习室人员变化,同时也设置房间是否开了
if (msg.event == RoomEvent.changeUser) {