Is there a way to check if a message event listener already exists?
I want to do something like:
if(noMessageEventListenerExists) {
globalThis.addEventListener('message', async function (data) {})
}
I saw that working for onClick events but then you have to specify the id of the Element you want to check.
Is there a way to do that for 'message' event listeners?