Are Electron ipc messages ordered?

Viewed 181

Are there any ordering guarantees of ipc messages in Electron? If so, what are they?

For instance, in main:

window.webContents.send('channel-a', 1)
window.webContents.send('channel-a', 2)

And in the renderer:

ipcRenderer.on('channel-a', (_event, num) => console.log(num))

Are the messages always delivered in order to the renderer (such that 1 comes before 2 in the example above)?

If so, are they also always ordered if the messages are on different channels (e.g. by changing channel-a to channel-b in one of the lines above)?

0 Answers
Related