How to communicate between the Safari extension and it's application?

I want to send data between the app and the Safari extension, I don't found any helpful resources for that.