Skip to content

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

License

Notifications You must be signed in to change notification settings

shininglab-code/slice-document-messenger

Repository files navigation

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

Releases

No releases published

Packages

No packages published