I am experiencing some issues with a project I am developing using Socket.IO with Node.js. When I restart the project or stop and restart it, the port used by Socket.IO is still open. This requires me to manually close the port using the
sudo lsof -i
command to find the PID and then use the kill command.
In addition, the application does not automatically restart every time the server is restarted.