From 689efb4504a09c1967b11b7a133d93e329640b22 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 11 Oct 2016 15:39:06 -0600 Subject: [PATCH] fix streams -> stream typo --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fc21dc9..935be5e 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ stunnel.connect({ }); ``` -* You can get sneaky with `net` and provide a `createConnection` that returns a `streams.Duplex`. +* You can get sneaky with `net` and provide a `createConnection` that returns a `stream.Duplex`. ### Token @@ -121,8 +121,8 @@ stunnel.connect({ // data is the hello packet / first chunk // info = { data, servername, port, host, remoteAddress: { family, address, port } } - var myDuplex = new (require('streams').Duplex)(); - var myDuplex2 = new (require('streams').Duplex)(); + var myDuplex = new (require('stream').Duplex)(); + var myDuplex2 = new (require('stream').Duplex)(); // duplex = { write, push, end, events: [ 'readable', 'data', 'error', 'end' ] }; myDuplex2.__my_socket = myDuplex;