bot18
Version:
A high-frequency cryptocurrency trading bot by Zenbot creator @carlos8f
15 lines (14 loc) • 438 B
JavaScript
var accesslog = require('../')()
, http = require('http')
, port = 3000
;
http.createServer(function(req, res) {
accesslog(req, res, function() {
var content = JSON.stringify({'hello': 'world'});
res.writeHead(200, {'Content-Type': 'application/json', 'Content-Length': content.length});
res.write(content);
res.end();
});
}).listen(port, function() {
console.log('test server listening on port ' + port);
});