Communicating between a chrome extension and electron app


I’m pretty new to electron development and am trying to pass events from my chrome extension to the electron app.

These tools seem like the most likely ways to get up and running:

However, i’m a bit unclear as to how this might work in an electron app. I’ve tried setting up chrome-native-messaging in the main process but i’m not receiving any events. Has anyone successfully gotten something like this working?