diff --git a/packages/angular_devkit/build_angular/src/builders/dev-server/vite-server.ts b/packages/angular_devkit/build_angular/src/builders/dev-server/vite-server.ts index 2d14b80627af..a34bbb7cfd4a 100644 --- a/packages/angular_devkit/build_angular/src/builders/dev-server/vite-server.ts +++ b/packages/angular_devkit/build_angular/src/builders/dev-server/vite-server.ts @@ -343,7 +343,7 @@ function handleUpdate( if (serverOptions.liveReload || serverOptions.hmr) { if (updatedFiles.every((f) => f.endsWith('.css'))) { const timestamp = Date.now(); - server.ws.send({ + server.hot.send({ type: 'update', updates: updatedFiles.map((filePath) => { return { @@ -363,7 +363,7 @@ function handleUpdate( // Send reload command to clients if (serverOptions.liveReload) { - server.ws.send({ + server.hot.send({ type: 'full-reload', path: '*', });