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

Commit

Permalink
Remove unnecessary members from tls.Server
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
kevinoid committed Apr 13, 2013
1 parent 2691d32 commit d801af7
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions tls.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,38 +81,12 @@ tls.SecurePair = function() {};
*/
tls.Server = function() {};

/**
* @param {number} port
* @param {(string|function(...))=} host
* @param {function(...)=} callback
*/
tls.Server.prototype.listen = function(port, host, callback) {};

/**
*/
tls.Server.prototype.close = function() {};

/**
* @return {{port: number, family: string, address: string}}
*/
tls.Server.prototype.address = function() {};

/**
* @param {string} hostname
* @param {string|buffer.Buffer} credentials
*/
tls.Server.prototype.addContext = function(hostname, credentials) {};

/**
* @type {number}
*/
tls.Server.prototype.maxConnections;

/**
* @type {number}
*/
tls.Server.prototype.connections;

/**
* @constructor
* @extends stream.Duplex
Expand Down

0 comments on commit d801af7

Please sign in to comment.