@getsensibill/web-post-message-bus
v0.2.13
Published
This project adds inter iframe communication capabilities using window.postMessage under the hood.
Downloads
71
Maintainers
Keywords
Readme
Sensibill Web Post Message Bus
This project adds inter iframe communication capabilities using window.postMessage under the hood.
# Using npm
npm i @getsensibill/web-post-message-bus
# Using yarn
yarn add @getsensibill/web-post-message-bus
Import where you need it
import { SensibillPostMessageBus } from '@getsensibill/web-post-message-bus';
Events are also imported like this
import { LaunchCaptureEvent } from '@getsensibill/web-post-message-bus';
Example Usage
SensibillPostMessageBus.send(new LaunchCaptureEvent());
Build
yarn build:npm