@codeboxlive/window-gateway
v0.4.2
Published
Gateway between iFrame windows to enable bi-directional iFrame window post messages using promises.
Downloads
4
Maintainers
Readme
Window Gateway SDK
This package is a simple package designed to make window post messages bi-directional using promises, ensuring that the child and parent are using a shared set of interfaces to communicate securely. For it to work, both a parent and child window must implement the WindowGatewayHub
class in this package.
Use this package for any application, irregardless of whether it uses Codebox Live. For a package more tailored for usage in a Codebox Live sandbox app, see the @codeboxlive/extensions-core package.
Installing the package
npm
npm install @codeboxlive/window-gateway
yarn
yarn add @codeboxlive/window-gateway
Example usage
Coming soon
License
Licensed under the MIT License, except for dependencies which have various licenses.