From c75373e8d439d3e9ffe9c9edb4f02c6f4d46b49f Mon Sep 17 00:00:00 2001 From: Evgeny Pavlovskiy Date: Mon, 9 Jul 2018 13:31:46 +0200 Subject: [PATCH] js.node.net.Server: add `listening` boolean property --- src/js/node/net/Server.hx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/js/node/net/Server.hx b/src/js/node/net/Server.hx index daf3fc03..18fef776 100644 --- a/src/js/node/net/Server.hx +++ b/src/js/node/net/Server.hx @@ -140,6 +140,11 @@ extern class Server extends EventEmitter { **/ function ref():Void; + /** + A boolean indicating whether or not the server is listening for connections. + **/ + var listening(default,null):Bool; + /** Set this property to reject connections when the server's connection count gets high. It is not recommended to use this option once a socket has been sent to a child with child_process.fork().