Package 

Object StreamSocketConfig.Companion

    • Method Detail

      • jwt

         final StreamSocketConfig jwt(StreamWsUrl url, StreamApiKey apiKey, StreamHttpClientInfoHeader clientInfoHeader, Long healthCheckIntervalMs, Long livenessThresholdMs, Long connectionTimeoutMs, Integer aggregationThreshold, Long aggregationMaxWindowMs, Integer aggregationDispatchQueueCapacity)

        Creates a JWT-based StreamSocketConfig.

        Parameters:
        url - WebSocket endpoint URL.
        apiKey - Stream API key for authentication.
        clientInfoHeader - X-Stream-Client header value.
        healthCheckIntervalMs - Interval between health check pings in milliseconds.
        livenessThresholdMs - Liveness threshold in milliseconds.
        connectionTimeoutMs - WebSocket connection timeout in milliseconds.
        aggregationThreshold - Events before aggregated delivery triggers.
        aggregationMaxWindowMs - Maximum collection window in milliseconds.
        aggregationDispatchQueueCapacity - Dispatch queue capacity.
      • anonymous

         final StreamSocketConfig anonymous(StreamWsUrl url, StreamApiKey apiKey, StreamHttpClientInfoHeader clientInfoHeader, Long healthCheckIntervalMs, Long livenessThresholdMs, Long connectionTimeoutMs, Integer aggregationThreshold, Long aggregationMaxWindowMs, Integer aggregationDispatchQueueCapacity)

        Creates an anonymous StreamSocketConfig.

        Parameters:
        url - WebSocket endpoint URL.
        apiKey - Stream API key for authentication.
        clientInfoHeader - X-Stream-Client header value.
        healthCheckIntervalMs - Interval between health check pings in milliseconds.
        livenessThresholdMs - Liveness threshold in milliseconds.
        connectionTimeoutMs - WebSocket connection timeout in milliseconds.
        aggregationThreshold - Events before aggregated delivery triggers.
        aggregationMaxWindowMs - Maximum collection window in milliseconds.
        aggregationDispatchQueueCapacity - Dispatch queue capacity.
      • custom

         final StreamSocketConfig custom(StreamWsUrl url, StreamApiKey apiKey, String authType, StreamHttpClientInfoHeader clientInfoHeader, Long healthCheckIntervalMs, Long livenessThresholdMs, Long connectionTimeoutMs, Integer aggregationThreshold, Long aggregationMaxWindowMs, Integer aggregationDispatchQueueCapacity)

        Creates a custom StreamSocketConfig.

        Parameters:
        url - WebSocket endpoint URL.
        apiKey - Stream API key for authentication.
        authType - Authentication type (e.g., "jwt", "anonymous").
        clientInfoHeader - X-Stream-Client header value.
        healthCheckIntervalMs - Interval between health check pings in milliseconds.
        livenessThresholdMs - Liveness threshold in milliseconds.
        connectionTimeoutMs - WebSocket connection timeout in milliseconds.
        aggregationThreshold - Events before aggregated delivery triggers.
        aggregationMaxWindowMs - Maximum collection window in milliseconds.
        aggregationDispatchQueueCapacity - Dispatch queue capacity.