Home > post-me > Messenger > addMessageListener
Add a listener to messages received by the other context
Signature:
addMessageListener(listener: MessageListener): ListenerRemover;
Parameter | Type | Description |
---|---|---|
listener | MessageListener | A listener that will receive the MessageEvent |
Returns:
ListenerRemover
A function that can be invoked to remove the listener