mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
Potential speedup?
This commit is contained in:
@@ -39,7 +39,7 @@ exports.encodePacket = function (packet) {
|
||||
var encoded = packets[packet.type]
|
||||
|
||||
// data fragment is optional
|
||||
if ('undefined' != typeof packet.data) {
|
||||
if (undefined !== packet.data) {
|
||||
encoded += ':' + packet.data;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user