Interface NativeWebSocketSession

All Superinterfaces:
AutoCloseable, Closeable, WebSocketSession
All Known Implementing Classes:
AbstractWebSocketSession, JettyWebSocketSession, StandardWebSocketSession, WebSocketClientSockJsSession, WebSocketServerSockJsSession

public interface NativeWebSocketSession extends WebSocketSession
A WebSocketSession that exposes the underlying, native WebSocketSession through a getter.
Since:
4.0
Author:
Rossen Stoyanchev
  • Method Details

    • getNativeSession

      Object getNativeSession()
      Return the underlying native WebSocketSession.
    • getNativeSession

      @Nullable <T> T getNativeSession(@Nullable Class<T> requiredType)
      Return the underlying native WebSocketSession, if available.
      Parameters:
      requiredType - the required type of the session
      Returns:
      the native session of the required type, or null if not available