feat: http heart
This commit is contained in:
1 parent
01ab40bf4a
commit
66cc7f8a1f
6 files changed
+42
-4
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user