@qualithm/kafka-client - v0.1.6
    Preparing search index...

    Type Alias KafkaSocket

    A connected socket to a Kafka broker.

    Runtime adapters wrap their native socket types to implement this interface. Data arrives via the SocketConnectOptions.onData callback provided at connection time; this type only exposes write and close operations.

    type KafkaSocket = {
        close: () => Promise<void>;
        write: (data: Uint8Array) => Promise<void>;
    }
    Index

    Properties

    Properties

    close: () => Promise<void>

    Close the connection gracefully.

    write: (data: Uint8Array) => Promise<void>

    Send raw bytes to the broker. Resolves when the data is flushed.