Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.

Commit d801af7

Browse files
committed
Remove unnecessary members from tls.Server
These members are all inherited from net.Server and don't need to be redefined for tls.Server (and the listen definition was causing type warnings). Signed-off-by: Kevin Locke <[email protected]>
1 parent 2691d32 commit d801af7

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

tls.js

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -81,38 +81,12 @@ tls.SecurePair = function() {};
8181
*/
8282
tls.Server = function() {};
8383

84-
/**
85-
* @param {number} port
86-
* @param {(string|function(...))=} host
87-
* @param {function(...)=} callback
88-
*/
89-
tls.Server.prototype.listen = function(port, host, callback) {};
90-
91-
/**
92-
*/
93-
tls.Server.prototype.close = function() {};
94-
95-
/**
96-
* @return {{port: number, family: string, address: string}}
97-
*/
98-
tls.Server.prototype.address = function() {};
99-
10084
/**
10185
* @param {string} hostname
10286
* @param {string|buffer.Buffer} credentials
10387
*/
10488
tls.Server.prototype.addContext = function(hostname, credentials) {};
10589

106-
/**
107-
* @type {number}
108-
*/
109-
tls.Server.prototype.maxConnections;
110-
111-
/**
112-
* @type {number}
113-
*/
114-
tls.Server.prototype.connections;
115-
11690
/**
11791
* @constructor
11892
* @extends stream.Duplex

0 commit comments

Comments
 (0)