mirror of
https://github.com/socketio/socket.io.git
synced 2026-01-11 07:58:13 -05:00
Merge pull request #689 from bwillard/master
Improve performance of parser.decodePayload
This commit is contained in:
@@ -234,7 +234,7 @@ exports.decodePayload = function (data) {
|
||||
|
||||
for (var i = 1, length = ''; i < data.length; i++) {
|
||||
if (data[i] == '\ufffd') {
|
||||
ret.push(exports.decodePacket(data.substr(i + 1).substr(0, length)));
|
||||
ret.push(exports.decodePacket(data.substr(i + 1, length)));
|
||||
i += Number(length) + 1;
|
||||
length = '';
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user