Skip to content

Commit d8351e6

Browse files
committed
Release 0.9.9
1 parent cffb4eb commit d8351e6

File tree

5 files changed

+19
-13
lines changed

5 files changed

+19
-13
lines changed

History.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11

2+
0.9.9 / 2012-08-01
3+
==================
4+
5+
* socket: fixed disconnect xhr url and made it actually sync
6+
* *: bump xmlhttprequest dep
7+
28
0.9.8 / 2012-07-24
39
==================
410

dist/socket.io.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Socket.IO.js build:0.9.8, development. Copyright(c) 2011 LearnBoost <[email protected]> MIT Licensed */
1+
/*! Socket.IO.js build:0.9.9, development. Copyright(c) 2011 LearnBoost <[email protected]> MIT Licensed */
22

33
var io = ('undefined' === typeof module ? {} : module.exports);
44
(function() {
@@ -25,7 +25,7 @@ var io = ('undefined' === typeof module ? {} : module.exports);
2525
* @api public
2626
*/
2727

28-
io.version = '0.9.8';
28+
io.version = '0.9.9';
2929

3030
/**
3131
* Protocol implemented.
@@ -1544,8 +1544,7 @@ var io = ('undefined' === typeof module ? {} : module.exports);
15441544
if (this.options['sync disconnect on unload'] &&
15451545
(!this.isXDomain() || io.util.ua.hasCORS)) {
15461546
var self = this;
1547-
1548-
io.util.on(global, 'unload', function () {
1547+
io.util.on(global, 'beforeunload', function () {
15491548
self.disconnectSync();
15501549
}, false);
15511550
}
@@ -1854,11 +1853,12 @@ var io = ('undefined' === typeof module ? {} : module.exports);
18541853
, this.options.host + ':' + this.options.port
18551854
, this.options.resource
18561855
, io.protocol
1856+
, ''
18571857
, this.sessionid
1858-
].join('/') + '?disconnect';
1858+
].join('/') + '/?disconnect=1';
18591859

1860-
xhr.open('GET', uri, true);
1861-
xhr.send(null);
1860+
xhr.open('GET', uri, false);
1861+
xhr.send(null);
18621862

18631863
// handle disconnection immediately
18641864
this.onDisconnect('booted');

dist/socket.io.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/io.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* @api public
2222
*/
2323

24-
io.version = '0.9.8';
24+
io.version = '0.9.9';
2525

2626
/**
2727
* Protocol implemented.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "socket.io-client"
33
, "description": "Socket.IO client for the browser and node.js"
4-
, "version": "0.9.8"
4+
, "version": "0.9.9"
55
, "main" : "./lib/io.js"
66
, "browserify": "./dist/socket.io.js"
77
, "homepage": "http://socket.io"
@@ -28,8 +28,8 @@
2828
, "express": "2.5.x"
2929
, "jade": "*"
3030
, "stylus": "*"
31-
, "socket.io": "0.9.8"
32-
, "socket.io-client": "0.9.8"
31+
, "socket.io": "0.9.9"
32+
, "socket.io-client": "0.9.9"
3333
}
3434
, "engines": { "node": ">= 0.4.0" }
3535
}

0 commit comments

Comments
 (0)