Chat SDK for React Native 1.15.0
    Preparing search index...

    Interface ChatStreamChunk

    流分片的数据结构。

    interface ChatStreamChunk {
        customType?: string;
        errorCode: number;
        finishReason: number;
        status: ChatStreamChunkStatus;
        text: string;
    }
    Index

    Properties

    customType?: string

    流分片的自定义类型。

    errorCode: number

    流分片的错误码。默认值为 0,表示无错误。若值不为 0,请参考 EMErrorCode 错误码表。

    finishReason: number

    流分片的结束原因。由用户透传。0 表示无异常。

    流分片的状态。参见 ChatStreamChunkStatus

    text: string

    流分片的文本内容。