mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
fix(ws/shard): use WebSocket#close() instead of WebSocket#send() to close connection (#518)
* fix(ws/shard): use WebSocket#close() instead of WebSocket#send() to close connection * Oops forgot the return statement
This commit is contained in:
+2
-1
@@ -228,7 +228,8 @@ async function heartbeat(
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
return shard.ws.send(JSON.stringify({ op: 4009 }));
|
|
||||||
|
return shard.ws.close(4009, "Session timed out");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user