重写双向通信demo

This commit is contained in:
gsx
2022-04-23 20:11:42 +08:00
parent bde9c2c1d4
commit fd45a3305c
3 changed files with 57 additions and 108 deletions

View File

@@ -7,10 +7,6 @@ const ipcApiRoute = {
messageShowConfirm: 'controller.example.messageShowConfirm',
selectFolder: 'controller.example.selectFolder',
openDirectory: 'controller.example.openDirectory',
socketMessageStart: 'controller.example.socketMessageStart',
socketMessageStop: 'controller.example.socketMessageStop',
hello: 'controller.example.hello',
executeJS: 'controller.example.executeJS',
loadViewContent: 'controller.example.loadViewContent',
removeViewContent: 'controller.example.removeViewContent',
createWindow: 'controller.example.createWindow',
@@ -30,6 +26,8 @@ const ipcApiRoute = {
doSocketRequest: 'controller.example.doSocketRequest',
ipcInvokeMsg: 'controller.example.ipcInvokeMsg',
ipcSendSyncMsg: 'controller.example.ipcSendSyncMsg',
ipcSendMsg: 'controller.example.ipcSendMsg',
hello: 'controller.example.hello',
}
const specialIpcRoute = {