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

    Class BufferedTlsWebSocket

    Simple Class that implements the TlsWebSocket and stores the data in buffers.

    Index

    Constructors

    Properties

    onerror: (errorMessage: string) => void

    Event handler that is called when an Error occurs.

    onopen: () => void

    Event handler that is called after the connection has been established

    onclose: () => void

    Event handler that is called after the connection has been closed

    onmessage: (event: { data: Uint8Array }) => void

    Event handler that is called after data from the server has been received an has been decrypted.

    onsend: () => void

    Called after send() has been called.

    initTimestamp: number
    lastPacketSend: number
    closed: boolean
    dataReceived: number
    dataToOutputBuffer: number
    dataSend: Uint8Array
    serverCertificate: undefined | string

    Methods

    • Parameters

      • ...args: unknown[]

      Returns void

    • Sends data through ssl client

      Parameters

      • data: string | ArrayBufferLike

      Returns void

    • Returns all the data in the send Buffer.

      Parameters

      • OptionalclearBuffer: boolean

        if this is set the buffer will be cleared on return.

      Returns Uint8Array

    • Actively Closes connection Also frees all memory

      Returns void

    • Gets Status Information of this TlsWebsocket

      Returns TlsWebSocketState

    • Parameters

      • serverCertificate: undefined | string

      Returns void

    • Reads a PEM encoded String of the complete certificate chain of the server.

      Returns undefined | string

      PTM string, could be undefined in case of an error.

    • Frees the memory

      Returns void