# Class SSEDecoder

Server-Sent Event decoder.

- Defined in packages/core/dist/stream/sse-decoder.d.ts:22

##### Index

### Constructors

constructor

### Methods

decode

## Constructors

### constructor

- new SSEDecoder(): SSEDecoder

  #### Returns SSEDecoder

  - Defined in packages/core/dist/stream/sse-decoder.d.ts:26

## Methods

### decode

- decode(line: string): ServerSentEvent | null

  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.

  - Defined in packages/core/dist/stream/sse-decoder.d.ts:32