Package io.jmix.flowui.devserver
Class ViteWebsocketEndpoint
java.lang.Object
jakarta.websocket.Endpoint
io.jmix.flowui.devserver.ViteWebsocketEndpoint
public class ViteWebsocketEndpoint
extends jakarta.websocket.Endpoint
The websocket endpoint for Vite.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
init
(com.vaadin.flow.server.VaadinContext context, ViteHandler viteHandler) Creates the websocket endpoint that Vite connects to.void
onClose
(jakarta.websocket.Session session, jakarta.websocket.CloseReason closeReason) void
onOpen
(jakarta.websocket.Session session, jakarta.websocket.EndpointConfig config) Methods inherited from class jakarta.websocket.Endpoint
onError
-
Field Details
-
VITE_HANDLER
- See Also:
-
-
Constructor Details
-
ViteWebsocketEndpoint
public ViteWebsocketEndpoint()
-
-
Method Details
-
init
Creates the websocket endpoint that Vite connects to.- Parameters:
context
- the web contextviteHandler
- the Vite handler instance to connect to
-
onOpen
public void onOpen(jakarta.websocket.Session session, jakarta.websocket.EndpointConfig config) - Specified by:
onOpen
in classjakarta.websocket.Endpoint
-
onClose
public void onClose(jakarta.websocket.Session session, jakarta.websocket.CloseReason closeReason) - Overrides:
onClose
in classjakarta.websocket.Endpoint
-