mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
pushing fixes
This commit is contained in:
@@ -63,7 +63,6 @@ let shardCounter = 0;
|
||||
|
||||
function createShardWorker() {
|
||||
const path = new URL("./shard.ts", import.meta.url).toString();
|
||||
console.log("path", path);
|
||||
const shard = new Worker(path, { type: "module", deno: true });
|
||||
shard.onmessage = (message) => {
|
||||
if (message.data.type === "REQUEST_CLIENT_OPTIONS") {
|
||||
@@ -91,7 +90,7 @@ export function handleDiscordPayload(
|
||||
socket: WebSocket,
|
||||
resumeInterval: number,
|
||||
) {
|
||||
console.log("inside handle discord payloa", data);
|
||||
console.log("inside handle discord payloa", data.t);
|
||||
// Update the sequence number if it is present
|
||||
if (data.s) updatePreviousSequenceNumber(data.s);
|
||||
eventHandlers.raw?.(data);
|
||||
|
||||
Reference in New Issue
Block a user