Socket
Socket
Sign inDemoInstall

axon

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

axon - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

6

History.md
0.6.1 / 2013-04-13
==================
* fix Socket#close() callback support
* add callback to reply() when peer is gone
0.6.0 / 2013-04-13

@@ -3,0 +9,0 @@ ==================

21

lib/sockets/sock.js

@@ -150,2 +150,3 @@

*
* @param {Function} [fn]
* @api public

@@ -158,10 +159,20 @@ */

this.closeSockets();
if (this.server) {
debug('closing server');
this.server.on('close', this.emit.bind(this, 'close'));
this.server.close(fn);
}
if (this.server) this.closeServer(fn);
};
/**
* Close the server.
*
* @param {Function} [fn]
* @api public
*/
Socket.prototype.closeServer = function(fn){
debug('closing server');
this.server.on('close', this.emit.bind(this, 'close'));
this.server.close();
fn && fn();
};
/**
* Return the server address.

@@ -168,0 +179,0 @@ *

{
"name": "axon",
"description": "High-level messaging & socket patterns implemented in pure js",
"version": "0.6.0",
"version": "0.6.1",
"author": "TJ Holowaychuk <tj@vision-media.ca>",

@@ -6,0 +6,0 @@ "dependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc