mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 04:23:31 +01:00
small speed fix
This commit is contained in:
2
index.js
2
index.js
@@ -228,7 +228,6 @@ exports.Client.prototype.connectWebsocket = function( cb ) {
|
|||||||
console.log("Took "+ (Date.now() - time) +" ms to prepare!");
|
console.log("Took "+ (Date.now() - time) +" ms to prepare!");
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
console.log("-", x, Date.now() - time)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if ( dat.t === "MESSAGE_CREATE" ) {
|
} else if ( dat.t === "MESSAGE_CREATE" ) {
|
||||||
@@ -369,6 +368,7 @@ exports.Client.prototype.connectWebsocket = function( cb ) {
|
|||||||
|
|
||||||
connDat.d.properties = Internal.WebSocket.properties;
|
connDat.d.properties = Internal.WebSocket.properties;
|
||||||
this.sendPacket( connDat );
|
this.sendPacket( connDat );
|
||||||
|
time = Date.now();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user