tosser

0.0.12 • Public • Published

Tosser

Send your messages from one frame to the other using a simple API which give you ack/nack support.

Trebuchet

Much thanks to Mike Kruger for letting me open source this portion of code created while building https://www.nsyrt.com/

API

  • trigger (type, content = '', callback)
  • broadcast (type, content = '', callback)
  • sendToParent (type, content = '', callback = function () {})
  • sendToChildren (type, content = '', callback = function () {})
  • sendToWindow (type, content = '', targetWindow, callback = function () {})
  • once (type, callback)
  • on (type, callback)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.12
    1
    • latest

Version History

Package Sidebar

Install

npm i tosser

Weekly Downloads

8

Version

0.0.12

License

MIT

Last publish

Collaborators

  • myztiq