make 'readyState' available to CryptoStream

This commit is contained in:
Alexis Sellier
2011-01-18 22:39:20 -05:00
committed by Ryan Dahl
parent 2f6cb66009
commit 66b418d6f3

View File

@@ -167,6 +167,9 @@ CryptoStream.prototype.destroy = function(err) {
this.pair._destroy();
};
CryptoStream.prototype.fd = -1;
CryptoStream.prototype.__defineGetter__('readyState',
net.Socket.prototype.__lookupGetter__('readyState'));
// Move decrypted, clear data out into the application.
// From the user's perspective this occurs as a 'data' event