Skip to content

Commit

Permalink
fix: add vite-ping subprotocol to Vite websocket proxy (#20578)
Browse files Browse the repository at this point in the history
Fixes #20574
  • Loading branch information
mcollovati authored Nov 29, 2024
1 parent 5543ba0 commit 1e51ebe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public static void init(VaadinContext context, ViteHandler viteHandler) {
return;
}
try {
List<String> subProtocols = Collections.singletonList("vite-hmr");
List<String> subProtocols = List.of("vite-hmr", "vite-ping");
ServerEndpointConfig endpointConfig = ServerEndpointConfig.Builder
.create(ViteWebsocketEndpoint.class,
viteHandler.getPathToVaadinInContext())
Expand Down

0 comments on commit 1e51ebe

Please sign in to comment.