We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.base.devserver.viteproxy.
Class ViteWebsocketEndpoint
java.lang.Object
jakarta.websocket.Endpoint
com.vaadin.base.devserver.viteproxy.ViteWebsocketEndpoint
public class ViteWebsocketEndpoint
extends jakarta.websocket.Endpoint
The websocket endpoint for Vite.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
init
(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
-