Module

Electron.IpcRenderer

Package
purescript-electron
Repository
cjduncana/purescript-electron

#on Source

on :: forall eff. Channel -> Listener (electron :: ELECTRON | eff) -> Eff (electron :: ELECTRON | eff) Unit

Listens to channel, when a new message arrives the listener is called.

Official Electron documentation

#once Source

once :: forall eff. Channel -> Listener (electron :: ELECTRON | eff) -> Eff (electron :: ELECTRON | eff) Unit

Adds a one time listener function for the event. This listener is invoked only the next time a message is sent to channel, after which it is removed.

Official Electron documentation

#removeListener Source

removeListener :: forall eff. Channel -> Listener (electron :: ELECTRON | eff) -> Eff (electron :: ELECTRON | eff) Unit

Removes the specified listener from the listener array for the specified channel.

Official Electron documentation

#removeAllListeners Source

removeAllListeners :: forall eff. Eff (electron :: ELECTRON | eff) Unit

Removes all listeners.

Official Electron documentation

#send Source

send :: forall eff a. Channel -> a -> Eff (electron :: ELECTRON | eff) Unit

Send a message to the main process asynchronously via channel.

Official Electron documentation

#sendSync Source

sendSync :: forall eff a. Channel -> a -> Eff (electron :: ELECTRON | eff) Unit

Send a message to the main process synchronously via channel.

Official Electron documentation

#sendToHost Source

sendToHost :: forall eff a. Channel -> a -> Eff (electron :: ELECTRON | eff) Unit

Like ipcRenderer.send but the event will be sent to the <webview> element in the host page instead of the main process.

Official Electron documentation