Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 701 Bytes

readme.md

File metadata and controls

17 lines (12 loc) · 701 Bytes

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)