1.0.1 • Published 8 years ago
listen-interface v1.0.1
listen-interface
module to listen on a specific network interface
Installation
npm install --save listen-interface
exemple :
var http = require('http'),
listen = require('listen-interface');
var server = http.createServer(function(req, res) {
// ...
});
listen(server, { 'port': 8080, 'interface': 'wlan0'})
API :
listen
:
server
: http server or net serverconfig
:port
: port to listen tointerface
: network interface to listen to
callback : optionnal callback function
1.0.1
8 years ago