@kagamidigital/salt-sdk-mirror
    Preparing search index...

    Class SocketConnectError

    A websocket (re)connect attempt failed — either a transport-level failure or the relay rejecting the connection's auth token (JWT). The message is derived from originalError, including a hint when the failure looks like the URL pointing at the wrong server (a connect_error of 'Invalid namespace').

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • websocketUrl: string

        The websocket URL the (re)connect attempt was made against.

      • originalError: Error

        The connect_error that failed the attempt.

      • isAuthError: boolean

        Whether originalError was the relay rejecting the JWT.

      Returns SocketConnectError

    Properties

    cause?: Error

    The underlying error that triggered this one, if any.

    isAuthError: boolean

    true when the relay rejected the connection's auth token (JWT); false for transport-level failures.

    message: string
    name: string
    stack?: string