refactor(WebSocketShard): payload sending (#10098)

* refactor(WebSocketShard): payload sending

* fix: adjust ratelimit state onopen

* fix: use >=

* chore: spelling

Co-authored-by: space <spaceeec@yahoo.com>

---------

Co-authored-by: space <spaceeec@yahoo.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
DD
2024-02-05 20:42:33 +02:00
committed by GitHub
parent f401cff3f4
commit c878b65ef5
2 changed files with 42 additions and 29 deletions

View File

@@ -71,7 +71,7 @@ export const ImportantGatewayOpcodes = new Set([
export function getInitialSendRateLimitState(): SendRateLimitState {
return {
remaining: 120,
sent: 0,
resetAt: Date.now() + 60_000,
};
}