SAP AI SDK for JavaScript - v2.8.0
    Preparing search index...

    Class SSEDecoder

    Server-Sent Event decoder.

    Index

    Constructors

    Methods

    Constructors

    • Returns SSEDecoder

    Methods

    • Decode the line into structured server sent event.

      Parameters

      • line: string

        Line to decode.

      Returns ServerSentEvent | null

      Server sent event if the line is empty meaning the end of the received event, or null if there are more lines to come.

      Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.