Permalink
Browse files

Renamed 'auto flush' option to manualFlush

  • Loading branch information...
1 parent 76cf0b3 commit a55ed9bf574ac701e0aba09c4cee6d52b1fa6784 Chelsea Robb committed Apr 24, 2012
Showing with 4 additions and 4 deletions.
  1. +3 −3 lib/socket.js
  2. +1 −1 test/socket.test.js
View
6 lib/socket.js
@@ -36,7 +36,7 @@
, 'sync disconnect on unload': true
, 'auto connect': true
, 'flash policy port': 10843
- , 'auto flush': true
+ , 'manualFlush': false
};
io.util.merge(this.options, options);
@@ -306,15 +306,15 @@
this.doBuffer = v;
if (!v && this.connected && this.buffer.length) {
- if (this.options['auto flush']) {
+ if (!this.options['manualFlush']) {
this.flushBuffer();
}
}
};
/**
* Flushes the buffer data over the wire.
- * To be invoked manually when 'auto flush' is set to false.
+ * To be invoked manually when 'manualFlush' is set to true.
*
* @api public
*/
View
2 test/socket.test.js
@@ -72,7 +72,7 @@
'test manual buffer flushing': function (next) {
var socket = create();
- socket.socket.options['auto flush'] = false;
+ socket.socket.options['manualFlush'] = true;
socket.on('error', function (msg) {
throw new Error(msg || 'Received an error');

0 comments on commit a55ed9b

Please sign in to comment.