fix streams -> stream typo

This commit is contained in:
AJ ONeal 2016-10-11 15:39:06 -06:00
parent 71c7a8378f
commit 689efb4504
1 changed files with 3 additions and 3 deletions

View File

@ -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;