diff --git a/packages/core/useWebSocket/index.ts b/packages/core/useWebSocket/index.ts index a1d222b15d4..708a6787098 100644 --- a/packages/core/useWebSocket/index.ts +++ b/packages/core/useWebSocket/index.ts @@ -148,7 +148,7 @@ export function useWebSocket( } = options const data: Ref = ref(null) - const status = ref('CONNECTING') + const status = ref('CLOSED') const wsRef = ref() let heartbeatPause: Fn | undefined