We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f0d91e7 + aada94d commit 0333613Copy full SHA for 0333613
lib/connection.js
@@ -300,6 +300,11 @@ Connection.prototype.end = function() {
300
this._send(0x58);
301
};
302
303
+Connection.prototype.close = function(msg, more) {
304
+ this.writer.addCString(msg.type + (msg.name || ''));
305
+ this._send(0x43, more);
306
+};
307
+
308
Connection.prototype.describe = function(msg, more) {
309
this.writer.addCString(msg.type + (msg.name || ''));
310
this._send(0x44, more);
@@ -364,6 +369,9 @@ Connection.prototype.parseMessage = function(buffer) {
364
369
case 0x32: //2
365
370
return new Message('bindComplete', length);
366
371
372
+ case 0x33: //3
373
+ return new Message('closeComplete', length);
374
367
375
case 0x41: //A
368
376
return this.parseA(buffer, length);
377
0 commit comments