renamed Client#disconnect to Client#end

This commit is contained in:
brianc 2010-10-22 18:28:10 -05:00
parent 86b25a7a96
commit 65dbfa43ec
4 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,7 @@ completely non-blocking.
};
query.on('end') {
client.disconnect();
client.end();
};

View File

@ -86,7 +86,7 @@ p.writeInt32 = function(buffer, offset, value) {
buffer[offset++] = value >>> 0 & 0xFF;
};
p.disconnect = function() {
p.end = function() {
var terminationBuffer = new Buffer([88,0,0,0,4]);
this.stream.write(terminationBuffer);
};

View File

@ -18,5 +18,5 @@ query.on('row', function() {
});
query.on('end', function() {
client.disconnect();
client.end();
});

View File

@ -25,7 +25,7 @@ query.on('row', function(row) {
console.log(row);
});
query.on('end', function() {
client3.disconnect();
client3.end();
});