Lession - #591 HTML5 WebMessaging
Web messaging is the ability to send realtime messages from the server to the shopper browser. It overrides the cross domain communication problem in different domains, protocols or ports
For example, you want to send the data from your page to ad container that is placed at iframe or voice-versa, in this scenario, Browser throws a security exception. With web messaging we will pass the data across as a message event.
Message events fires Cross-document messaging, channel messaging, server-sent events and web sockets.it has described by Message Event interface.
Contains string data
Contains name and port
Contains unique identifier for the current message event.
Contains to A reference to the originating document’s window
Contains the data that is sent by any message port