Dispatching an Event from index.jsx to the index.js
I'm trying to build some kind of export tool in photoshop and i'm struggaling a bit. I'm trying to find the answer but i can't seem to find it. Is it possible to dispatch an event from the index.jsx(host) file and listen to it inside the index.js(client)?
I've found this but i need it the other way around.
Folder structure looks like this.
