diff options
Diffstat (limited to 'includes/external/addressbook/node_modules/http2-wrapper/source/utils/js-stream-socket.js')
-rw-r--r-- | includes/external/addressbook/node_modules/http2-wrapper/source/utils/js-stream-socket.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/includes/external/addressbook/node_modules/http2-wrapper/source/utils/js-stream-socket.js b/includes/external/addressbook/node_modules/http2-wrapper/source/utils/js-stream-socket.js new file mode 100644 index 0000000..ac22280 --- /dev/null +++ b/includes/external/addressbook/node_modules/http2-wrapper/source/utils/js-stream-socket.js @@ -0,0 +1,8 @@ +'use strict'; +const stream = require('stream'); +const tls = require('tls'); + +// Really awesome hack. +const JSStreamSocket = (new tls.TLSSocket(new stream.PassThrough()))._handle._parentWrap.constructor; + +module.exports = JSStreamSocket; |