zttp
0.0.2 • Public • Published zttp
open http protocol service over the zmq STREAM
socket.
based on ZMQ_STREAM and ideas from hintjens' web server.
install
there's an npm package dependency on zmq.
you'll need:
use
var z = require('zttp').listen('tcp://127.0.0.1:3000');
z.route('/zmq/endpoint', function(req,res){
var response = '<!DOCTYPE html><head><meta charset="UTF-8"></head><body>'
+ '<p>Hello from zeromq.</p></body></html>'
res.send(response);
});
MIT
Dependencies (1)
Dev Dependencies (3)
Package Sidebar
Install
Weekly Downloads