net_uv: Export Socket and Stream
authorRyan Dahl <ry@tinyclouds.org>
Fri, 17 Jun 2011 16:09:15 +0000 (18:09 +0200)
committerRyan Dahl <ry@tinyclouds.org>
Fri, 17 Jun 2011 16:09:15 +0000 (18:09 +0200)
lib/net_uv.js

index 9f9441a..40c1e89 100644 (file)
@@ -54,6 +54,10 @@ function Socket(options) {
 util.inherits(Socket, stream.Stream);
 
 
+exports.Socket = Socket;
+exports.Stream = Socket; // Legacy naming.
+
+
 Socket.prototype.setTimeout = function(msecs, callback) {
   if (msecs > 0) {
     timers.enroll(this, msecs);