@yoshteq/ti365-ts-sdk
    Preparing search index...

    Class AbstractTlsConnectionAbstract

    Abstract class for handling the lazy initialization of the WASM TLS Client, and establishing a connection.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    socket: undefined | TlsWebSocket
    reader: undefined | SocketReader
    timeout: number
    debugEnabled: boolean

    set to debug HttpClient with console.log

    onVerifyTlsConnection: (socket: TlsWebSocket) => Promise<void>

    Hook method for double verify a connection aber the tls connection has been established.

    Type Declaration

      • (socket: TlsWebSocket): Promise<void>
      • Parameters

        • socket: TlsWebSocket

          the new opened tls connection.

        Returns Promise<void>

    Methods

    • Parameters

      • ...args: unknown[]

      Returns void

    • Sets the read timeout in ms

      Parameters

      • timeout: number

        timeout in ms

      Returns void

    • Returns TlsWebSocket

    • Returns a PEM string containing of the certificate chain.

      Returns undefined | string

      PEM string.

    • Parameters

      • command: string

      Returns void

    • Waits for the WASM to be loaded, then starts the connection to the WebSocket after that tries to establish a tls connections.

      Returns Promise<void>

      a Promise that resolves after the TLS connection is established, and rejects in case of an error