1.新增被移除会议、全员结束会议回调

This commit is contained in:
fuenmao 2024-11-28 14:03:13 +08:00
parent 613487c0fd
commit 92db340c86
1 changed files with 17 additions and 1 deletions

View File

@ -213,7 +213,7 @@ class MeetingMainLogic extends GetxController with RequestToolMixin{
update();
});
///
///
state.hubConnection.value?.on("ReceiveMessage", (e){
var jsonStr = const Utf8Decoder().convert(json.encode(e).runes.toList());
List list = json.decode(jsonStr);
@ -225,6 +225,22 @@ class MeetingMainLogic extends GetxController with RequestToolMixin{
});
debugPrint("wgs输出===Socket-会议室接收消息:$jsonStr");
});
///
state.hubConnection.value?.on("ForceExitRoom", (e){
var jsonStr = const Utf8Decoder().convert(json.encode(e).runes.toList());
var listDynamic = jsonDecode(jsonStr);
debugPrint("wgs输出===Socket-被移除会议:$jsonStr");
Get.back();
ToastUtils.showSuccess("你已被移除会议");
});
///
state.hubConnection.value?.on("AllLeave", (e){
debugPrint("wgs输出===Socket-全员结束会议");
Get.back();
ToastUtils.showSuccess("会议已结束");
});
}
///