File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,16 @@ function isPipeName(s) {
163
163
return typeof s === 'string' && toNumber ( s ) === false ;
164
164
}
165
165
166
+ /**
167
+ * Creates a new TCP or IPC server
168
+ * @param {{
169
+ * allowHalfOpen?: boolean;
170
+ * pauseOnConnect?: boolean;
171
+ * }} [options]
172
+ * @param {Function } [connectionListener]
173
+ * @returns {Server }
174
+ */
175
+
166
176
function createServer ( options , connectionListener ) {
167
177
return new Server ( options , connectionListener ) ;
168
178
}
@@ -1548,6 +1558,11 @@ function onconnection(err, clientHandle) {
1548
1558
self . emit ( 'connection' , socket ) ;
1549
1559
}
1550
1560
1561
+ /**
1562
+ * Gets the number of concurrent connections on the server
1563
+ * @param {Function } cb
1564
+ * @returns {Server }
1565
+ */
1551
1566
1552
1567
Server . prototype . getConnections = function ( cb ) {
1553
1568
const self = this ;
You can’t perform that action at this time.
0 commit comments