Skip to content

Myztiq/tosser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published