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 @@ -163,6 +163,16 @@ function isPipeName(s) {
163163 return typeof s === 'string' && toNumber ( s ) === false ;
164164}
165165
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+
166176function createServer ( options , connectionListener ) {
167177 return new Server ( options , connectionListener ) ;
168178}
@@ -1548,6 +1558,11 @@ function onconnection(err, clientHandle) {
15481558 self . emit ( 'connection' , socket ) ;
15491559}
15501560
1561+ /**
1562+ * Gets the number of concurrent connections on the server
1563+ * @param {Function } cb
1564+ * @returns {Server }
1565+ */
15511566
15521567Server . prototype . getConnections = function ( cb ) {
15531568 const self = this ;
You can’t perform that action at this time.
0 commit comments