Compare commits

...

2 Commits
0.3.7 ... 0.3.9

Author SHA1 Message Date
Guillermo Rauch
5e329229b4 Fix for flush in htmlfile 2010-06-25 14:57:57 -07:00
Guillermo Rauch
ea36d24d9e Updated Socket.IO client 2010-06-18 03:02:51 -03:00
2 changed files with 4 additions and 4 deletions

View File

@@ -17,11 +17,11 @@ exports.htmlfile = Client.extend({
'Transfer-Encoding': 'chunked'
});
this.response.write('<html><body>' + new Array(244).join(' '));
this.response.flush();
if ('flush' in this.response) this.response.flush();
this._payload();
this._heartbeatInterval = setInterval(function(){
self.response.write('<!-- heartbeat -->');
self.response.flush();
if ('flush' in self.response) self.response.flush();
}, this.options.heartbeatInterval);
break;
@@ -44,7 +44,7 @@ exports.htmlfile = Client.extend({
_write: function(message){
this.response.write('<script>parent.s._('+ message +', document);</script>');
this.response.flush();
if ('flush' in this.response) this.response.flush();
}
});