You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
how do i make sure the port is not used by any other instance if i choose port by myself there is some % chance that that port might be in use ..is there way to programatically access the free port given by the system
The text was updated successfully, but these errors were encountered:
portfinder.getPort().then((port)=>{webserver.start(function(){console.log("Started the HTTP server on port ",port);},function(){console.log('Failed to start the HTTP server');},port)}).catch((e)=>{console.log("Failed to find a free port");});
how do i make sure the port is not used by any other instance if i choose port by myself there is some % chance that that port might be in use ..is there way to programatically access the free port given by the system
The text was updated successfully, but these errors were encountered: