Skip to content

Feature - added support for Server#close(callback) #2748

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 15, 2016

Conversation

mhmeadows63
Copy link
Contributor

@mhmeadows63 mhmeadows63 commented Nov 12, 2016

The kind of change this PR does introduce

  • a bug fix
  • a new feature
  • an update to the documentation
  • a code change that improves performance
  • other

Current behaviour

Previously unable to pass a done callback to the Server#close() method.

New behaviour

Now able to pass a done callback to the Server#close() method.

Other information (e.g. related issues)

candidate for #2739

Sorry, something went wrong.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@@ -355,7 +355,7 @@ Server.prototype.of = function(name, fn){
* @api public
*/

Server.prototype.close = function(){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -355,7 +355,7 @@ Server.prototype.of = function(name, fn){
* @api public
*/

Server.prototype.close = function(){
Server.prototype.close = function(fn){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you update the JSDoc with the optional argument please?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw you updated the docs (thanks!), could you also update the jsdoc (above @api public, line 354-355) please?

@darrachequesne darrachequesne merged commit e14a10b into socketio:master Nov 15, 2016
@darrachequesne
Copy link
Member

@mhmeadows63 thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants