Interface ViteSessionTracker.SessionCloseListener

Enclosing class:
ViteSessionTracker
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ViteSessionTracker.SessionCloseListener
Listener interface for HTTP session close events.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onSessionClose(String httpSessionId, int closeCode, String closeMessage)
    Called when an HTTP session is closed.
  • Method Details

    • onSessionClose

      void onSessionClose(String httpSessionId, int closeCode, String closeMessage)
      Called when an HTTP session is closed.
      Parameters:
      httpSessionId - the ID of the HTTP session that was closed
      closeCode - the WebSocket close code to use (e.g., 1008 for VIOLATED_POLICY)
      closeMessage - the close message to send with the WebSocket close