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) {
161161 return typeof s === 'string' && toNumber ( s ) === false ;
162162}
163163
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+
164174function createServer ( options , connectionListener ) {
165175 return new Server ( options , connectionListener ) ;
166176}
@@ -1563,6 +1573,11 @@ function onconnection(err, clientHandle) {
15631573 self . emit ( 'connection' , socket ) ;
15641574}
15651575
1576+ /**
1577+ * Gets the number of concurrent connections on the server
1578+ * @param {Function } cb
1579+ * @returns {Server }
1580+ */
15661581
15671582Server . prototype . getConnections = function ( cb ) {
15681583 const self = this ;
You can’t perform that action at this time.
0 commit comments