mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
Merge branch 'master' of github.com:LearnBoost/Socket.IO
This commit is contained in:
2
dist/socket.io.js
vendored
2
dist/socket.io.js
vendored
@@ -1529,7 +1529,7 @@
|
||||
if (xhr.status == 200) {
|
||||
complete(xhr.responseText);
|
||||
} else {
|
||||
self.onError(xhr.responseText);
|
||||
!self.reconnecting && self.onError(xhr.responseText);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
2
dist/socket.io.min.js
vendored
2
dist/socket.io.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -62,7 +62,7 @@
|
||||
*/
|
||||
|
||||
parser.encodePacket = function (packet) {
|
||||
var type = packets.indexOf(packet.type)
|
||||
var type = indexOf(packets, packet.type)
|
||||
, id = packet.id || ''
|
||||
, endpoint = packet.endpoint || ''
|
||||
, ack = packet.ack
|
||||
@@ -70,8 +70,8 @@
|
||||
|
||||
switch (packet.type) {
|
||||
case 'error':
|
||||
var reason = packet.reason ? reasons.indexOf(packet.reason) : ''
|
||||
, adv = packet.advice ? advice.indexOf(packet.advice) : ''
|
||||
var reason = packet.reason ? indexOf(reasons, packet.reason) : ''
|
||||
, adv = packet.advice ? indexOf(advice, packet.advice) : ''
|
||||
|
||||
if (reason !== '' || adv !== '')
|
||||
data = reason + (adv !== '' ? ('+' + adv) : '')
|
||||
|
||||
@@ -141,7 +141,7 @@
|
||||
if (xhr.status == 200) {
|
||||
complete(xhr.responseText);
|
||||
} else {
|
||||
self.onError(xhr.responseText);
|
||||
!self.reconnecting && self.onError(xhr.responseText);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user