refactor(WebSocketShard): error event handling (#10436)

* refactor(WebSocketShard): error event handling

* chore: blehhhh :pppp

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
DD
2024-08-15 19:10:25 +03:00
committed by GitHub
parent 432e9b8425
commit a6de2707fc
3 changed files with 5 additions and 10 deletions

View File

@@ -82,5 +82,3 @@ export function getInitialSendRateLimitState(): SendRateLimitState {
resetAt: Date.now() + 60_000,
};
}
export const KnownNetworkErrorCodes = new Set(['ECONNRESET', 'ECONNREFUSED', 'ETIMEDOUT', 'EAI_AGAIN']);