Skip to content

Commit 6aa00a1

Browse files
committed
fix(util): a websocket closed error is now correctly handled as a network error
1 parent af5afff commit 6aa00a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/util/src/network.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable @typescript-eslint/no-explicit-any */
22

3-
export const connectionErrorCodes = ['ENOTFOUND', 'ECONNREFUSED', 'ECONNRESET'];
3+
export const connectionErrorCodes = ['ENOTFOUND', 'ECONNREFUSED', 'ECONNRESET', 'WebSocket is closed'];
44

55
export const isConnectionError = (error: any) => {
66
if (

0 commit comments

Comments
 (0)