counterback
v0.4.1
Published
```javascript const createServer = require('counterback').createServer createServer({ host: '127.0.0.1', port: 8181, persist: persistToMongo, persistInterval: 1000 * 60 * 10, load: loadFromMongo, }).then(server => { // server is started }) ```
Downloads
2
Readme
Example
const createServer = require('counterback').createServer
createServer({
host: '127.0.0.1',
port: 8181,
persist: persistToMongo,
persistInterval: 1000 * 60 * 10,
load: loadFromMongo,
}).then(server => {
// server is started
})
Options
- host
- port
- persit
- persistInterval
- load
TODO
- events.js:163 throw er; // Unhandled 'error' event ^ Error: read ECONNRESET at exports._errnoException (util.js:1034:11) at TCP.onread (net.js:580:26)
- performance monitor
- separate repos
- apply old expires
- clean up old counters (with zeros)
DONE
- handle client abort
- docker file
- persist feature