路由器-zeromq用于通过∅mq发送请求和响应数据的Express中间件。安装使用npm安装:npm install router-zeromq

例子


var zmqRouter = require('router-zeromq');

var express = require('express');

var app = express();



app.use(zmqRouter);



app.get('/', function(request, response) {

    response.send('Hello world!');

});



app.listen(5000);

console.log('Server running on port 5000');