Skip to content

Commit 875236f

Browse files
authored
use net.Socket instead of net.Stream
`net.Stream` is a undocumented legacy naming from node 0.x https://github.com/nodejs/node/blob/4ae320f2b3c745402955019d6a57a22ee2b8d3bd/lib/net.js#L1762
1 parent 50b1221 commit 875236f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/connection.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var BINARY_MODE = 1
1919
var Connection = function (config) {
2020
EventEmitter.call(this)
2121
config = config || {}
22-
this.stream = config.stream || new net.Stream()
22+
this.stream = config.stream || new net.Socket()
2323
this._keepAlive = config.keepAlive
2424
this.lastBuffer = false
2525
this.lastOffset = 0

0 commit comments

Comments
 (0)