org.springframework.web.socket.adapter

Interface NativeWebSocketSession

    • Method Detail

      • getNativeSession

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

        @Nullable
        <T> T getNativeSession(@Nullable
                                         java.lang.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