Socket
Book a DemoInstallSign in
Socket

daisy

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

daisy

Abstracted MQ for rabbitmq

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
32
77.78%
Maintainers
1
Weekly downloads
 
Created
Source

Beanpole + Rabbitmq

Roadmap

  • passing files
  • support for other transports

Setting Up

  • make sure you have rabbitmq (duh).
  • npm install daisy -g
  • In terminal, type daisy --host rabbitmq-server to startup the daisy server.
  • In the apps you want to hook up with rabbitMQ, setup your package.json like so:

{
    "name": "app-name",
    "version": "0.0.1",

    "dependencies": {
        "beanpole": "*",
		"daisy": "*"
    },

	"beans": {
		"daisy": {
			"name": "name-of-app-queue",
			"host": "localhost"
		}
	},
    
    "main": "./lib/index.js"
}


  • you'll need to write a chunk of code kinda like this:

var beanpole = require('beanpole'),
router = beanpole.router();

router.require(__dirname + '/package.json');

router.on({
	
	/**
	 */
	
	'push -public my/public/message': function()
	{
		//handle response from networked app
	}
});

//initialize the beans!
router.push('init');

FAQs

Package last updated on 16 Nov 2012

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