-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsharedIpc.ts
More file actions
25 lines (20 loc) · 886 Bytes
/
sharedIpc.ts
File metadata and controls
25 lines (20 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/**
* Direction: Renderer -> Main -> Renderer
* When renderer side wants to run some main functions, he call this IPC.
* this can run either an rpc call (get status, add/remove exit,..) or a belnet process manager command (start/stop the service)
*/
export const IPC_CHANNEL_KEY = 'ipc-channel';
/**
* Direction: Main -> Renderer
* When main side wants to add a log line in the renderer log screen it calls this IPC
*/
export const IPC_LOG_LINE = 'log-line-to-app';
/**
* Direction: Main -> Renderer
* When main side wants to set the global error status on the renderer side he calls this method
*/
export const IPC_GLOBAL_ERROR = 'ipc-global-error';
export type StatusErrorTypeSet = 'error-start-stop' | 'error-add-exit';
export type StatusErrorType = StatusErrorTypeSet | undefined;
export const DEBUG_IPC_CALLS = true;
export const DEBUG_IPC_CALLS_GET_STATUS = false;