I should listen (I don't know) on a certain port, in this case the 8080
, to understand why it closes and if so with what error.
I have a nodejs
server running on the 8080
, but I can't figure out why it shuts down.
Is there any command that allows me to do this?
Background Info:
I created a simple server in node.js, for testing. The application I'm developing is an extension of raycast.
This extension, by specifying the directory where the server is located, reads the package, shows the commands inside and through a menu bar on MacOS, shows the executable commands. By clicking on a command the user will execute it, for example start the server in node.js.
The problem is when there are console.logs inside the server.
If there is no console.log, there is no problem, but if one is run the server stops working, but it only stops working when started by the extension, if it starts normally there is no problem.
I would like to understand what happens.
If there's anything I wasn't clear on let me know.
nodejs
code ? try to catch and print error code from listening primitive. did you unwilligly listen multiple time to same port+IP ? did you exit whole program instead of a single thread ? If your are not responsible for that code, and it is part of bigger application, recheck installation and start procedure,8080
is pretty common for http, did another java/tomcat whatever is also running ?