server.on('request') does not work
Opened this issue · 1 comments
brandonros commented
var server = http.createServer();
server.on('request', function(req, res) {
...
});
Function never gets registered/called.
Helidium commented
Yes, you are right, you can try this:
const server = http.createServer((req, res) => {
...
});