We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
handle.reading
1 parent 7887e11 commit 1ab7e80Copy full SHA for 1ab7e80
lib/_tls_wrap.js
@@ -282,6 +282,14 @@ TLSSocket.prototype._wrapHandle = function(handle) {
282
res = tls_wrap.wrap(handle, context.context, options.isServer);
283
res._parent = handle;
284
res.reading = handle.reading;
285
+ Object.defineProperty(handle, 'reading', {
286
+ get: function readingGetter() {
287
+ return res.reading;
288
+ },
289
+ set: function readingSetter(value) {
290
+ res.reading = value;
291
+ }
292
+ });
293
294
// Proxy HandleWrap, PipeWrap and TCPWrap methods
295
proxiedMethods.forEach(function(name) {
0 commit comments