1.新增被移除会议、全员结束会议回调
This commit is contained in:
parent
613487c0fd
commit
92db340c86
|
|
@ -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("会议已结束");
|
||||
});
|
||||
}
|
||||
|
||||
/// 加入会议室
|
||||
|
|
|
|||
Loading…
Reference in New Issue