[rabbitmq-discuss] "sockets module" for rabbitmq.js example

ChrisAdkin chris1adkin at yahoo.co.uk
Wed Oct 26 22:46:13 BST 2011

I'm trying to get the example working as per the rabbitmq + node.js posting
(http://www.rabbitmq.com/blog/2010/11/12/rabbitmq-nodejs-rabbitjs/). I
follow the example, but when I run node example/socketio.js it falls down

The "sys" module is now called "util". It should have a similar interface.

        throw e; // process.nextTick error, or 'error' event on first tick
Error: Cannot find module 'sockets'
    at Function._resolveFilename (module.js:334:11)
    at Function._load (module.js:279:25)
    at Module.require (module.js:357:17)
    at require (module.js:368:17)
    at Object.<anonymous> (/home/chris/rabbit.js/example/socketio.js:8:13)
    at Module._compile (module.js:432:26)
    at Object..js (module.js:450:10)
    at Module.load (module.js:351:31)
    at Function._load (module.js:310:12)
    at Array.<anonymous> (module.js:470:10)

this implies that sockets is a node js module, however the article only
refers to this as being a JavaScript file, nor can I find any reference to a
node.js sockets module on github. Can someone please point me in the right
View this message in context: http://old.nabble.com/%22sockets-module%22-for-rabbitmq.js-example-tp32727898p32727898.html
Sent from the RabbitMQ mailing list archive at Nabble.com.

More information about the rabbitmq-discuss mailing list