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

    Class Pop3Client

    A Pop3 Client for a TLS encrypted connection over a WebSocket.

    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>

    lastError: Pop3ClientError

    Methods

    • 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

    • Returns the last recorded error type while establishing an POP3Session.

      Returns Pop3ClientError

    • Establishes a connection to the POP3 Server and tries to login. Creates a Pop3Session if successful.

      Parameters

      • username: string
      • password: string

      Returns Promise<Pop3Session>

      Pop3Session

      Error if any error occur. Use getLastError to determine the source of the error.