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

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • ViteWebsocketEndpoint

      public ViteWebsocketEndpoint()
  • Method Details

    • init

      public static void init(com.vaadin.flow.server.VaadinContext context, ViteHandler viteHandler)
      Creates the websocket endpoint that Vite connects to.
      Parameters:
      context - the web context
      viteHandler - the Vite handler instance to connect to
    • onOpen

      public void onOpen(jakarta.websocket.Session session, jakarta.websocket.EndpointConfig config)
      Specified by:
      onOpen in class jakarta.websocket.Endpoint
    • onClose

      public void onClose(jakarta.websocket.Session session, jakarta.websocket.CloseReason closeReason)
      Overrides:
      onClose in class jakarta.websocket.Endpoint