Binance Connector JS
    Preparing search index...

    Function validateTLSUrl

    • Validates that a URL uses a secure (TLS) scheme.

      • For REST API URLs: must use https://
      • For WebSocket URLs: must use wss://

      Logs a warning via the Logger if a non-TLS scheme is detected.

      Parameters

      • url: string

        The URL string to validate.

      • type: "rest" | "websocket"

        The type of URL being validated: 'rest' or 'websocket'.

      Returns void

      If the URL uses an insecure scheme (http:// or ws://).