Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

Does it support communication between two renderer processes? #11

Open
TheoXiong opened this issue Oct 12, 2019 · 0 comments
Open

Does it support communication between two renderer processes? #11

TheoXiong opened this issue Oct 12, 2019 · 0 comments

Comments

@TheoXiong
Copy link

TheoXiong commented Oct 12, 2019

Hello !
Does it support communication between two renderer processes?

Like this:

Renderer Process A

<!DOCTYPE html>
<script src="ipc-promise.min.js"></script>
<script>
  ipcPromise.on('twice', function(params) {
    return Promise.resolve(params.value * 2);
  })
</script>


Renderer Process B

<!DOCTYPE html>
<script src="ipc-promise.min.js"></script>
<script>
  ipcPromise
    .send('twice', {
      value: 1
    })
    .then(function(result) {
      console.log(result);  // => "2"
    });
</script>
@TheoXiong TheoXiong changed the title Does it support communication between two rendererprocesses? Does it support communication between two renderer processes? Oct 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant