MessagePortMain
Functions
Link copied to clipboard
fun addListener(event: MessagePortMainEvent.MESSAGE, listener: (messageEvent: MessageEvent) -> Unit)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Emitted when the remote end of a MessagePortMain object becomes disconnected.
Emitted when a MessagePortMain object receives a message.
Link copied to clipboard
Link copied to clipboard
Sends a message from the port, and optionally, transfers ownership of objects to other browsing contexts.
Link copied to clipboard
fun removeListener(event: MessagePortMainEvent.MESSAGE, listener: (messageEvent: MessageEvent) -> Unit)
Link copied to clipboard