new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Electron · API · all subjects

ipcmainserviceworker/methods

7 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

ipcMainServiceWorker.on() method

The on(channel, listener) method listens to a channel. When a new message arrives, the listener function is called with the signature listener(event, ...args), where event is an IpcMainServiceWorkerEvent and args are any additional arguments.

ipcMainServiceWorker.once() method

The once(channel, listener) method adds a one-time listener function for a channel. This listener is invoked only the next time a message is sent to the channel, after which it is automatically removed. The listener signature is listener(event, ...args), where event is an IpcMainServiceWorkerEvent.

ipcMainServiceWorker.removeListener() method

The removeListener(channel, listener) method removes the specified listener from the listener array for the specified channel.

ipcMainServiceWorker.removeAllListeners() method

The removeAllListeners(channel) method removes all listeners of the specified channel. The channel parameter is optional; if not provided, all listeners for all channels are removed.

ipcMainServiceWorker.handle() method

The handle(channel, listener) method sets up a handler for invoke-able IPC messages on a channel. The listener function receives an IpcMainServiceWorkerInvokeEvent and additional arguments, and must return either a Promise or a value.

ipcMainServiceWorker.handleOnce() method

The handleOnce(channel, listener) method handles a single invoke-able IPC message on a channel, then automatically removes the listener. The listener function receives an IpcMainServiceWorkerInvokeEvent and additional arguments, and must return either a Promise or a value.

ipcMainServiceWorker.removeHandler() method

The removeHandler(channel) method removes any handler for the specified channel, if one exists.

Give your agent this brain