Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 2.02 KB

README.markdown

File metadata and controls

24 lines (17 loc) · 2.02 KB

Slice Document Messenger

JavaScript library to send, receive, handle messages from-to iframe, browser tab, browser window. Uses localStorage to transport messages.

Examples

https://shininglab-code.com/slice-document-messenger/

Classes

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.

License

MIT