Compare commits

...

4 Commits
0.7.4 ... 0.7.6

Author SHA1 Message Date
Guillermo Rauch
a483f9cafd Release 0.7.6 2011-06-30 15:32:22 -03:00
Guillermo Rauch
b43c82f3db Fixed general dispatching when a client has closed. 2011-06-30 14:03:43 -03:00
Guillermo Rauch
84f0099c1d Release 0.7.5 2011-06-30 12:57:44 -03:00
Guillermo Rauch
c6a883c8a9 Fixed dispatching to clients that are disconnected. 2011-06-30 12:56:42 -03:00
4 changed files with 17 additions and 3 deletions

View File

@@ -1,4 +1,14 @@
0.7.6 / 2011-06-30
==================
* Fixed general dispatching when a client has closed.
0.7.5 / 2011-06-30
==================
* Fixed dispatching to clients that are disconnected.
0.7.4 / 2011-06-30
==================

View File

@@ -326,6 +326,8 @@ Manager.prototype.onOpen = function (id) {
Manager.prototype.onDispatch = function (room, packet, volatile, exceptions) {
// go through the users who have pending buffers
for (var i = 0, l = this.closedA.length; i < l; i++) {
if (!this.roomClients[this.closedA[i]]) continue;
if (this.roomClients[this.closedA[i]][room]) {
if (!~exceptions.indexOf(this.closedA[i])) {
this.closed[this.closedA[i]].push(packet);
@@ -407,7 +409,9 @@ Manager.prototype.onClose = function (id) {
*/
Manager.prototype.onClientDispatch = function (id, packet) {
this.closed[id].push(packet);
if (this.closed[id]) {
this.closed[id].push(packet);
}
};
/**

View File

@@ -15,7 +15,7 @@ var client = require('socket.io-client');
* Version.
*/
exports.version = '0.7.4';
exports.version = '0.7.6';
/**
* Supported protocol version.

View File

@@ -1,6 +1,6 @@
{
"name": "socket.io"
, "version": "0.7.4"
, "version": "0.7.6"
, "description": "Realtime apps made cross-browser & easy with a WebSocket-like API"
, "homepage": "http://socket.io"
, "keywords": ["websocket", "socket", "realtime", "socket.io", "comet", "ajax"]