title: Chrome extension: have an extension listen for an event on a page?
body: <p>I have a chrome extension that im making for my site, currently i have the extension checking the database every minute for updates.</p>
  
  <p>Is it possible to have the extension listen for an event on the actual page?</p>
  
  <p>Something like this</p>
  
  <pre><code>this.trigger('sendUpdate', data) //this happened on the page
  
  this.on(sendUpdate, function(){ //this is what the chrome extension listens for
      //do stuff with data
  })
  </code></pre>