New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bazaar

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bazaar

A publish-subscribe (broadcast-listen) layer for same-origin inter-window communication

  • 0.2.5
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
10
decreased by-23.08%
Maintainers
1
Weekly downloads
 
Created
Source

Bazaar

Description: A publish-subscribe (broadcast-listen) layer for same-origin inter-window communication. Let's you broadcast messages to all opened windows, which are listening.

Home page: jakut.is/git/BAZAAR/about

npm package: bazaar

jam package: bazaar

License: MIT

Author: Vytautas Jakutis

Example usage

demo code

// '/bazaar-worker.js' specifies the url of worker script
// 'hub1' specifies the namespace, this argument is optional, default is '__bazaar__'
var hub = window.bazaar('/bazaar-worker.js', 'hub1');

if(hub === null) {
    alert('your web browser is not supported');
} else {
    document.onmousedown = function() {
        hub.broadcast(new Date().getTime());
    };
    hub.listen(function(err, ts) {
        if(err) {
            return alert("An error occurred when receiving a message.");
        }
        alert(ts);
    });
}

Supported browsers

  • Mozilla Firefox 2.0+
  • Opera 10.50+
  • Google Chrome 5+
  • Microsoft Internet Explorer 6+
  • Apple Safari 4.0+

Keywords

FAQs

Package last updated on 17 Jul 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc