geoyws geoyws - 1 year ago 85
Node.js Question

The class net.Stream is not discussed in Node.js' documentation but is being used for node-postgres

var net = require('net');
var Connection = function(config) {
config = config || {}; = || new net.Stream();

There is no mention at all of net.Stream in the documentation.

Am I missing something?

Answer Source

Looks like it's just an alias to Socket.

exports.Stream = Socket; // Legacy naming.


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download