Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bimedia-fr/listen-interface
module to listen on a specific network interface
https://github.com/bimedia-fr/listen-interface
http interface listen listen-interface
Last synced: 2 months ago
JSON representation
module to listen on a specific network interface
- Host: GitHub
- URL: https://github.com/bimedia-fr/listen-interface
- Owner: bimedia-fr
- License: apache-2.0
- Created: 2016-01-20T09:54:15.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-05-20T11:43:02.000Z (8 months ago)
- Last Synced: 2024-11-01T11:04:21.774Z (3 months ago)
- Topics: http, interface, listen, listen-interface
- Language: JavaScript
- Size: 18.6 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# listen-interface
module to listen on a specific network interface## Installation
```sh
npm install --save listen-interface
```## exemple :
```js
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 server
* `config` :
* `port` : port to listen to
* `interface` : network interface to listen to
* [callback] : optionnal callback function