Class ServletWebSocketRegistry

java.lang.Object
services.moleculer.web.WebSocketRegistry
services.moleculer.web.servlet.websocket.ServletWebSocketRegistry
All Implemented Interfaces:
Runnable

public class ServletWebSocketRegistry extends WebSocketRegistry
  • Field Details

    • contextPath

      protected final String contextPath
    • contextPathLength

      protected final int contextPathLength
  • Constructor Details

    • ServletWebSocketRegistry

      public ServletWebSocketRegistry(jakarta.servlet.ServletConfig config, services.moleculer.ServiceBroker broker, long cleanupSeconds) throws jakarta.servlet.ServletException
      Throws:
      jakarta.servlet.ServletException
  • Method Details

    • onOpen

      protected void onOpen(jakarta.websocket.Session session)
    • onClose

      protected void onClose(jakarta.websocket.Session session)
    • getPathInfo

      protected String getPathInfo(jakarta.websocket.Session session)