core comm - mozilla/butter GitHub Wiki

Module: Comm

Allows communication between entities through postMessage.

Class: Comm

Lets entities communicate when communication restrictions exist by passing messages through postMessage.

  • param clientWindow : Window from/to which to send/receive messages
  • param readyCallback : Function to be called when link is set up

Usage: Comm(clientWindow, readyCallback)