File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed
Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 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+
281.0.2 / 2014-05-28
39==================
410
Original file line number Diff line number Diff line change 11{
22 "name" : " socket.io-client" ,
3- "version" : " 1.0.2 " ,
3+ "version" : " 1.0.3 " ,
44 "keywords" : [
55 " realtime" ,
66 " framework" ,
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" ,
Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments