chrome-net
Advanced tools
Comparing version 2.1.0 to 2.2.0
26
index.js
@@ -280,14 +280,2 @@ /** | ||
Socket.prototype.destroySoon = function () { | ||
var self = this | ||
if (self.writable) | ||
self.end() | ||
if (self._writableState.finished) | ||
self.destroy() | ||
else | ||
self.once('finish', self._destroy.bind(self)) | ||
} | ||
/** | ||
@@ -449,3 +437,3 @@ * Returns the bound address, the address family name and port of the socket | ||
* @param {Object} options | ||
* @param {function} [connectListener] | ||
* @param {function} cb | ||
* @return {Socket} this socket (for chaining) | ||
@@ -671,2 +659,14 @@ */ | ||
Socket.prototype.destroySoon = function () { | ||
var self = this | ||
if (self.writable) | ||
self.end() | ||
if (self._writableState.finished) | ||
self.destroy() | ||
else | ||
self.once('finish', self._destroy.bind(self)) | ||
} | ||
/** | ||
@@ -673,0 +673,0 @@ * Sets the socket to timeout after timeout milliseconds of inactivity on the socket. |
{ | ||
"name": "chrome-net", | ||
"description": "Use the Node `net` API in Chrome Apps", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"author": "Feross Aboukhadijeh <feross@feross.org> (http://feross.org/)", | ||
@@ -6,0 +6,0 @@ "bugs": { |
Sorry, the diff of this file is too big to display
209824
6200