假amqp
用法示例:
var fakeAmqp = require ( "exp-fake-amqp" ) ;
connection = fakeAmqp . createConnection ( ) ;
var exchange = connection . exchange ( "testExchange" , { } ) ;
connection . queue ( "theQueue" , { } , function ( queue ) {
queue . bind ( "testExchange" , "route" , function ( ) {
queue . subscribe ( function ( message ) {
console . log ( message ) ;
} ) ;
exchange . pub
1