Skip to content

Commit

Permalink
Merge pull request #104 from gene-pavlovsky/add-listening-property-to…
Browse files Browse the repository at this point in the history
…-net-server

js.node.net.Server: add `listening` boolean property
  • Loading branch information
ncannasse authored Jul 9, 2018
2 parents aad90f2 + c75373e commit e75b9c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/js/node/net/Server.hx
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ extern class Server extends EventEmitter<Server> {
**/
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().
Expand Down

0 comments on commit e75b9c1

Please sign in to comment.