Skip to content

Commit fa60e79

Browse files
committed
Release 1.0.3
1 parent 5c3e0af commit fa60e79

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

History.md

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

2+
1.0.3 / 2014-05-31
3+
==================
4+
5+
* package; bump `socket.io-parser` for binary ACK fix
6+
* package: bump `engine.io-client` for binary UTF8 fix
7+
28
1.0.2 / 2014-05-28
39
==================
410

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "socket.io-client",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"keywords": [
55
"realtime",
66
"framework",
@@ -22,7 +22,7 @@
2222
"indexof": "0.0.1"
2323
},
2424
"devDependencies": {
25-
"socket.io": "Automattic/socket.io#039eed",
25+
"socket.io": "1.0.3",
2626
"mocha": "1.16.2",
2727
"zuul": "1.6.3",
2828
"istanbul": "0.2.1",

socket.io.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,10 @@ Socket.prototype.onpacket = function(packet){
772772
this.onack(packet);
773773
break;
774774

775+
case parser.BINARY_ACK:
776+
this.onack(packet);
777+
break;
778+
775779
case parser.DISCONNECT:
776780
this.ondisconnect();
777781
break;
@@ -820,8 +824,10 @@ Socket.prototype.ack = function(id){
820824
sent = true;
821825
var args = toArray(arguments);
822826
debug('sending ack %j', args);
827+
828+
var type = hasBin(args) ? parser.BINARY_ACK : parser.ACK;
823829
self.packet({
824-
type: parser.ACK,
830+
type: type,
825831
id: id,
826832
data: args
827833
});

0 commit comments

Comments
 (0)