Helidium/Mitol

server.on('request') does not work

Opened this issue · 1 comments

var server = http.createServer();


  server.on('request', function(req, res) {
    ...
  });

Function never gets registered/called.

Yes, you are right, you can try this:

const server = http.createServer((req, res) => {
...
});