feat: http heart

This commit is contained in:
linyuchen committed 2024-04-16 20:58:29 +08:00
1 parent 01ab40bf4a
commit 66cc7f8a1f
6 files changed
+42 -4

No files matched your search

+4 -2
View File
@@ -69,7 +69,7 @@ export function postWsEvent(event: PostEventType) {
}
}
export function postOB11Event(msg: PostEventType, reportSelf = false) {
export function postOB11Event(msg: PostEventType, reportSelf = false, postWs= true) {
const config = ob11Config;
// 判断msg是否是event
if (!config.reportSelfMessage && !reportSelf) {
@@ -181,5 +181,7 @@ export function postOB11Event(msg: PostEventType, reportSelf = false) {
});
}
}
postWsEvent(msg);
if (postWs){
postWsEvent(msg);
}
}