nodejs check if express started 1

nodejs check if express started

server.listen(80).on('error', function(err) { });

Here is what the above code is Doing:
1. We’re creating a new HTTP server.
2. We’re telling the server to listen on port 80.
3. We’re telling the server to listen for errors.
4. We’re telling the server to log the error to the console.

Similar Posts