79180994

Date: 2024-11-12 12:04:25
Score: 4.5
Natty:
Report link

I just solved the problem. The problem was Express 4.x , now treats app.listen() as an asynchronous operation, so listener.address() will only return data inside of app.listen()'s callback. If I declare port statically,Code going well but it is also not good usage because it still static. Have an any idea to make it dynamic?

Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Onur Güvensoy