📄️ onMessage
Registers a callback function to be invoked whenever a message with a matching eventName is received.
📄️ sendMessage
Sends a message to a specific recipient component within your extension.
📄️ onWindowMessage
This function used in communication scenarios involving isolated content scripts and main content script. this function is used only in content script with ExecutionWorld.ISOLATED
📄️ sendToWindow
This is used to send the data to content script with ExecutionWorld.MAIN. this function is used only in content script with ExecutionWorld.ISOLATED
📄️ initMessaging
The initMessaging function, provided by the Messaging library, plays a fundamental role in initializing communication infrastructure within your browser extension. It establishes the connection between your extension's components and facilitates the exchange of information between them.