diff --git a/vaadin-dev-server/src/main/java/com/vaadin/base/devserver/viteproxy/ViteWebsocketEndpoint.java b/vaadin-dev-server/src/main/java/com/vaadin/base/devserver/viteproxy/ViteWebsocketEndpoint.java index 032aade7a95..fb1e6a7f90a 100644 --- a/vaadin-dev-server/src/main/java/com/vaadin/base/devserver/viteproxy/ViteWebsocketEndpoint.java +++ b/vaadin-dev-server/src/main/java/com/vaadin/base/devserver/viteproxy/ViteWebsocketEndpoint.java @@ -66,7 +66,7 @@ public static void init(VaadinContext context, ViteHandler viteHandler) { return; } try { - List subProtocols = Collections.singletonList("vite-hmr"); + List subProtocols = List.of("vite-hmr", "vite-ping"); ServerEndpointConfig endpointConfig = ServerEndpointConfig.Builder .create(ViteWebsocketEndpoint.class, viteHandler.getPathToVaadinInContext())