Skip to content

Commit 6ec0eb8

Browse files
authoredMar 10, 2025··
fix: check for ws existence before closing (#3238)
1 parent 6f77eae commit 6ec0eb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/utils/dev.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export async function startSocketServer(nuxt: Nuxt, options: ModuleOptions, mani
7777

7878
nuxt.hook('close', async () => {
7979
// Close WebSocket server
80-
await websocket.close()
80+
await websocket?.close()
8181
await listener.server.close()
8282
})
8383

0 commit comments

Comments
 (0)
Please sign in to comment.