JavaScript library to send, receive, handle messages from-to iframe, browser tab, browser window. Uses localStorage to transport messages.
https://shininglab-code.com/slice-document-messenger/
Class | Extends | Description |
---|---|---|
SliceMessage | none | Message class, stores message name and data. The one that is transportend. |
SliceMessageTransport | none | Messages transport basic class. Contains basic functionality to send and receive SliceMessage. |
SliceLocalStorageTransport | SliceMessageTransport | Message transport that uses localStorage to transport messages. |
SliceMessenger | none | Use it to send SliceMessage throught SliceMessageTransport and distribute it to its recievers, either SliceMessageBox or function. |
SliceMessageBox | none | Messages handling basic class. Main objective of it is to handle received SliceMessage either by itself or by its owner object or class. When provided with SliceMessenger can be used to send messages. |
SliceMessengerFactory | none | Static class that is used to create SliceMessenger. |