The type of message to send.
The callback to call when the message is received.
Optional
options: boolean | AddEventListenerOptionsOptional options for the event listener.
Sends data through this broadcast channel.
The sent message object
Sends a message and waits for the first response. Subsequent responses are
ignored. Returns null
once the timeout has passed with no responses.
Time to wait for a response, 500ms by default
Handles inter-tab communication and automatically broadcasts events to listeners.