Inter-Process Communication
Documentation of the IPC (Inter-Process Communication) API.
IPC allows processes to communicate and share variables with other processes, which the standard sandbox does not allow them to do.
The IPC library does not need to be required. It is in the public runtime environment by default.
ipc.shareWithAll(): tableReturns a share table. All data in the table is accessible (though read-only) to all other processes.ipc.shareWith(pid: number): tableReturns a share table. All data in the table is accessible (though read-only) to the process with the PID specified.ipc.shared: tableThis contains the tables (keyed by PIDs) of processes sharing variables with the current process over IPC. This table should only be indexed.ipc.shared[pid: number]: tableThis contains all variables (if any) shared with the current process from the process with a PID ofpid.
Last updated