File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,16 @@ function isPipeName(s) {
161
161
return typeof s === 'string' && toNumber ( s ) === false ;
162
162
}
163
163
164
+ /**
165
+ * Creates a new TCP or IPC server
166
+ * @param {{
167
+ * allowHalfOpen?: boolean;
168
+ * pauseOnConnect?: boolean;
169
+ * }} [options]
170
+ * @param {Function } [connectionListener]
171
+ * @returns {Server }
172
+ */
173
+
164
174
function createServer ( options , connectionListener ) {
165
175
return new Server ( options , connectionListener ) ;
166
176
}
@@ -1563,6 +1573,11 @@ function onconnection(err, clientHandle) {
1563
1573
self . emit ( 'connection' , socket ) ;
1564
1574
}
1565
1575
1576
+ /**
1577
+ * Gets the number of concurrent connections on the server
1578
+ * @param {Function } cb
1579
+ * @returns {Server }
1580
+ */
1566
1581
1567
1582
Server . prototype . getConnections = function ( cb ) {
1568
1583
const self = this ;
You can’t perform that action at this time.
0 commit comments