[🤯 Refactor] Use standalone window for WebSocket connections

1. [-] 删除了对于 desktopAssistant 的 Hook 逻辑
2. [/] 现在不再使用 desktopAssistant 保活 WS 连接, 而是用一个单独的不可见窗口处理 WS (#25)
This commit is contained in:
Minoricew
2025-06-17 18:14:58 +08:00
parent f6a30351fd
commit 807ac913da
8 changed files with 84 additions and 23 deletions

View File

@@ -418,7 +418,7 @@ const applyPlsIpcHandler = (ipcMain) => {
*/
(_event, arg) => {
ipcMain.send(
"desktopAssistant",
"auraWsKeepAlive",
`${methodBase}.ws.post.onReqSendMsg`,
arg
);
@@ -568,7 +568,7 @@ const applyPlsIpcHandler = (ipcMain) => {
status: "Already",
};
} else {
ipcMain.send("desktopAssistant", `${methodBase}.retryPlsConnect`, arg);
ipcMain.send("auraWsKeepAlive", `${methodBase}.retryPlsConnect`, arg);
return {
success: true,