Proposal: Add a public API constant to net/http/https Server telling whereas the server is listening or not #4735
Labels
feature request
Issues that request new features to be added to Node.js.
net
Issues and PRs related to the net subsystem.
It is not the first time that I've faced a situation where I had to check if a server is listening for connections.
I'm familiar with
lib/net
, so unfortunately I had to use._handle
with a little bit of tweaks.Is there any reason why you guys didn't added one?
My proposal is to place up a method (maybe called
.listening()
) onnet.Server
's prototype that would return abool
.The text was updated successfully, but these errors were encountered: