Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

tcp was changed to net in node 0.2

  • Loading branch information...
commit 00d19ceed64bfe116896289544dd16a0cdbc11bd 1 parent 9adfd44
@naudo naudo authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/amqp/index.js
View
4 lib/amqp/index.js
@@ -1,5 +1,5 @@
var sys = require('sys');
-var tcp = require('tcp');
+var net = require('net');
var Frame = require("./frame");
var Method = require("./method");
var Queue = require('./queue');
@@ -36,7 +36,7 @@ proto.init = function(options) {
return message.method && (message.method[0] == method[0] && message.method[1] == method[1]);
}
- var conn = tcp.createConnection(opts.port, opts.host);
+ var conn = net.createConnection(opts.port, opts.host);
conn.sendDebug = function(data) {
conn.send(data);
}
Please sign in to comment.
Something went wrong with that request. Please try again.